]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid: try to start degraded arrays in various ways
authorHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 11:32:09 +0000 (13:32 +0200)
committerHarald Hoyer <harald@redhat.com>
Mon, 2 Aug 2010 12:18:00 +0000 (14:18 +0200)
modules.d/90mdraid/mdraid_start.sh

index 0963658ca65713bea9eb4f8d8ac1d859178e2ed9..b7cca55dedd227ff7fe6f81059ed6d68fea662f6 100755 (executable)
@@ -4,7 +4,8 @@
 # run mdadm if udev has settled
 info "Assembling MD RAID arrays"
 udevadm control --stop-exec-queue
-mdadm -IRs 2>&1 | vinfo
+mdadm -As --auto=yes --run 2>&1 | vinfo
+mdadm -Is --run 2>&1 | vinfo
 
 # there could still be some leftover devices
 # which have had a container added
@@ -14,7 +15,7 @@ for md in /dev/md[0-9]* /dev/md/*; do
        strstr "$udevinfo" "MD_UUID=" && continue
        strstr "$udevinfo" "MD_LEVEL=container" && continue
        strstr "$udevinfo" "DEVTYPE=partition" && continue
-       mdadm -R "$md" 2>&1 | vinfo
+       mdadm --run "$md" 2>&1 | vinfo
 done
 unset udevinfo