]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid: call mdadm with "--wait-clean" instead of "-W"
authorHarald Hoyer <harald@redhat.com>
Tue, 2 Jan 2018 13:58:14 +0000 (14:58 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 2 Jan 2018 13:58:14 +0000 (14:58 +0100)
seems like -W changed meanings over the years :-/

modules.d/90mdraid/mdraid-waitclean.sh

index 5c901982d8364640e301f9f7041c54624ac72b3a..d7f0ffdbb075647423e42432b6cb529fb074fb3c 100755 (executable)
@@ -13,12 +13,12 @@ if getargbool 0 rd.md.waitclean; then
             continue
         fi
         info "Waiting for $md to become clean"
-        mdadm $_offroot -W "$md" >/dev/null 2>&1
+        mdadm $_offroot --wait-clean "$md" >/dev/null 2>&1
     done
 
     for md in $containers; do
         info "Waiting for $md to become clean"
-        mdadm $_offroot -W "$md" >/dev/null 2>&1
+        mdadm $_offroot --wait-clean "$md" >/dev/null 2>&1
     done
 
     unset containers udevinfo _offroot