Alexander E. Patrakov patrakov at
Wed Nov 2 18:45:51 PST 2005

Jeremy Huntwork wrote:
> Heya,
> These instructions appear at least in the x86_64 Multilib CLFS book. (I 
> didn't check the others):
> "Also, ensure that the kernel does not attempt to pass hotplugging 
> events to userspace until userspace specifies that it is ready:
> cp kernel/kmod.c{,.bak}
> sed 's@/sbin/hotplug@/bin/true@' kernel/kmod.c.bak > kernel/kmod.c"
> However, it looks like this has been removed from development LFS. From 
> my understanding this is no longer needed.
> Comments anyone?

It was never needed if the root fs was mounted read-only in grub kernel 

With old LFS-bootscripts, mounting the root-fs read-write in grub kernel 
line would result in which at that time 
rendered the system unbootable. Now that check is gone, so the system is 
bootable, but such "premature" hotplug events would create junk devices 
before tmpfs is mounted on /dev.

Note that the hotplug event for /dev/vcs0 is almost guaranteed to reach 
/sbin/hotplug before /dev is mounted, because it is generated when 
/sbin/init opens /dev/console for the "rc" script.

Alexander E. Patrakov

More information about the lfs-dev mailing list