Gottfried Haider wrote:

[c6/Udev-071]
installed udev-075
rewrote udev init.d-script, based on SUSE10: http://sukzessiv.net/udev
made /lib/udev for scripts,etc and /lib/udev/devices for static device nodes (currently: fd, stdin, stdout, stderr, core) removed last lines of 25-lfs.rules (running programs in /etc/dev.d /etc/hotplug.d) removed tmpfs mount /dev/shm and devpts mount /dev/pts from /etc/fstab as this is being mounted by the udev script
any comments on this one?

1) Your configuration doesn't autoload modules when one plugs a USB device (e.g. a flash drive) in. You need to add "modalias" rules for this. 2) Your setup is not reliable. Initial hotplug events triggered by "uevent" files in sysfs are processed in the background, this means that the "swap" or "checkfs" initscript may run (and fail, thus making the whole system unbootable) before udev creates the relevant device node.

Udev developers have a solution (visible event queue on disk) for the second problem, but that is not part of any released udev version, and Marco d'Itri (Debian maintainer of the udev package) says that it is still racy. For now, you may want to use the following hack in the end of the script:

while [ $(cat /proc/*/status 2> /dev/null | grep -c -E '^Name:.udevd?$') -gt 1 ]; do
   sleep 1
done

--
Alexander E. Patrakov
--
http://linuxfromscratch.org/mailman/listinfo/lfs-dev
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to