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
line.
With old LFS-bootscripts, mounting the root-fs read-write in grub kernel
line would result in
http://bugs.linuxfromscratch.org/show_bug.cgi?id=842 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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page