aboutsummaryrefslogtreecommitdiff
path: root/rc.sysinit
diff options
context:
space:
mode:
authorTom Gundersen <teg@jklm.no>2011-02-28 10:18:08 +0800
committerTom Gundersen <teg@jklm.no>2011-04-04 03:08:08 +0800
commitc3063d0400e7a55c9dbd6ff1b76887744e9b6224 (patch)
treec95cc3e06c1dfb6f8ad9e642254a47991864a915 /rc.sysinit
parent25c74161a16969cd57f583f927802969d4737225 (diff)
downloadinitscripts-c3063d0400e7a55c9dbd6ff1b76887744e9b6224.tar.xz
workaround: do not set property=STARTUP=1 when calling udevadm
This was needed to properly deal with dm devices being created in initrd. However, the lvm2/devicemapper rule files no longer use this property and now contain a proper fix. By grepping through /lib/udev/rules.d I could not find any other rule file using this property. Finally, the startup script submitted to systemd by the udev maintainer does not set the property, and there has not been any bug complaints about this. Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.sysinit')
-rwxr-xr-xrc.sysinit7
1 files changed, 2 insertions, 5 deletions
diff --git a/rc.sysinit b/rc.sysinit
index 9973c25..ec5307c 100755
--- a/rc.sysinit
+++ b/rc.sysinit
@@ -82,7 +82,6 @@ run_hook sysinit_udevlaunched
# Trigger udev uevents
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
stat_busy "Triggering UDev uevents"
- /sbin/udevadm control --property=STARTUP=1
/sbin/udevadm trigger --action=add --type=devices
/sbin/udevadm trigger --action=add --type=subsystems
stat_done
@@ -99,10 +98,8 @@ unset mods
# Wait for udev uevents
if /bin/pidof -o %PPID /sbin/udevd >/dev/null; then
- stat_busy "Waiting for UDev uevents to be processed"
- /sbin/udevadm settle --quiet --timeout=${UDEV_TIMEOUT:-30}
- /sbin/udevadm control --property=STARTUP=
- stat_done
+ status "Waiting for UDev uevents to be processed" \
+ /sbin/udevadm settle --quiet --timeout=${UDEV_TIMEOUT:-30}
fi
run_hook sysinit_udevsettled