Use --action=add on udevtrigger calls, to handle udev-152 and newer that send "change" events by default.

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9256 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
This commit is contained in:
Bryan Kadzban 2010-04-21 04:22:02 +00:00
parent 820c718c47
commit d3eda3d734
3 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-04-20 Bryan Kadzban <bryan@linuxfromscratch.org>
* lfs/init.d/udev, lfs/init.d/udev_retry: Add --action=add, to handle udev
version 152 and newer, which send "change" events by default in udevtrigger
now.
2010-01-24 Matthew Burgess <matthew@linuxfromscratch.org>
* lfs/init.d/udev: Check to see if /dev is already mounted, as it may be if
under an initramfs environment. See ticket #2550.

View File

@ -62,7 +62,7 @@ case "${1}" in
# Now traverse /sys in order to "coldplug" devices that have
# already been discovered
/sbin/udevadm trigger
/sbin/udevadm trigger --action=add
# Now wait for udevd to process the uevents we triggered
/sbin/udevadm settle

View File

@ -29,7 +29,7 @@ case "${1}" in
done
# Re-trigger the failed uevents in hope they will succeed now
/sbin/udevadm trigger --type=failed
/sbin/udevadm trigger --type=failed --action=add
# Now wait for udevd to process the uevents we triggered
/sbin/udevadm settle