]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
Do not stop / start udev exec-queue around "mdadm -As --run"
authorHans de Goede <hdegoede@redhat.com>
Thu, 17 Sep 2009 20:52:53 +0000 (22:52 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 18 Sep 2009 06:15:59 +0000 (08:15 +0200)
When assembling containers + embedded arrays from mdadm.conf,
mdadm needs the /dev/md# node for the container to assemble the
arrays within the container. Stopping the udev exec queue, results in
this node not getting created and mdadm failing to online the
arrays within the container.

Not having stop / start udev exec-queue around "mdadm -As --run" should
be safe as the exact same command is run from rc.sysinit without
any queue locking.

modules.d/90mdraid/mdadm_auto.sh

index 9e96b0033336890dacac5aa17d34bd67b0e2b60e..a971a5a1797110bd4987e5e52f9797f5490e733c 100755 (executable)
@@ -2,6 +2,4 @@
 . /lib/dracut-lib.sh
 
 info "Autoassembling MD Raid"    
-udevadm control --stop-exec-queue
 /sbin/mdadm -As --auto=yes --run 2>&1 | vinfo
-udevadm control --start-exec-queue