* Doh, subtle race condition: STARTUP must be cleared after "udevadm

settle".  Otherwise some rules may be processed with STARTUP
  cleared, causing LVM devices not to be created.

svn path=/nixos/trunk/; revision=19341
This commit is contained in:
Eelco Dolstra 2010-01-10 20:08:35 +00:00
parent eccddb67fa
commit ee005424bf
2 changed files with 2 additions and 2 deletions

View File

@ -193,8 +193,8 @@ in
# http://www.mail-archive.com/fedora-devel-list@redhat.com/msg10261.html
${udev}/sbin/udevadm control --env=STARTUP=1
${udev}/sbin/udevadm trigger
${udev}/sbin/udevadm control --env=STARTUP=
${udev}/sbin/udevadm settle # wait for udev to finish
${udev}/sbin/udevadm control --env=STARTUP=
initctl emit -n new-devices
'';

View File

@ -116,8 +116,8 @@ mkdir -p /dev/.udev # !!! bug in udev?
udevd --daemon
udevadm control --env=STARTUP=1
udevadm trigger
udevadm control --env=STARTUP=
udevadm settle
udevadm control --env=STARTUP=
echo "starting device mapper and LVM..."
lvm vgscan