On 11/2/05, Alexander E. Patrakov <[EMAIL PROTECTED]> wrote:
> 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
> --

What change did that anyway?  AFAIK, nothing in the bootscripts
disables hotplugging until we get to the UDEV bootscript.   [I also
remember everything from the earlier conversations leading up to this,
but I never got my answer back then]

--
Nathan Coulson (conathan)
------
nathan at linuxfromscratch org
conathan at gmail com
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page
  • Re: kmod.c Nathan Coulson

Reply via email to