[Bug 842] New: udev bootscript can fail to run udevstart if hotplug is installed

bugzilla at linuxfromscratch.org bugzilla at linuxfromscratch.org
Tue May 25 07:41:39 PDT 2004


           Summary: udev bootscript can fail to run udevstart if hotplug is
           Product: LFS Bootscripts
           Version: CVS
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P5
         Component: LFS
        AssignedTo: lfs-book at linuxfromscratch.org
        ReportedBy: kpfleming at linuxfromscratch.org
         QAContact: lfs-book at linuxfromscratch.org

(I'm reporting this problem because I'm the one who originally asked for the
change that is the source of the problem...)

In the udev bootscript, a check is made to see if /dev/.udev.tdb exists, and if
it does the remainder of the script is not run. This was added to handle the
situation where an initrd or initramfs had already run udevstart and created the
"extra" nodes, so the script would not generate errors.

However, now that hotplug is in the unstable book, there is a problem: if the
root filesystem is mounted read-write when the kernel mounts it (the first
mount) AND a hotplug event occurs before this script runs (small window), then
udev will get run by the hotplug scripts and this file will get created. The
result is that when the script runs it does not do what is needed.

I suggest either removing this check completely, or changing it to check to see
if there is a filesystem mounted at /dev. If the latter is true, it's pretty
safe to assume it was put there by an initrd/initramfs (it couldn't have gotten
there any other way).

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
You are the QA contact for the bug, or are watching the QA contact.

More information about the lfs-book mailing list