]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced
authorHarald Hoyer <harald@redhat.com>
Tue, 27 Oct 2009 14:11:35 +0000 (15:11 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 27 Oct 2009 15:02:56 +0000 (16:02 +0100)
test/TEST-14-IMSM/create-root.sh

index 78ec7936269c22ce76df50e75b7e598b982f65f6..44f627232e5525a9abeafe6f44b53c6e6d9629c2 100755 (executable)
@@ -41,7 +41,11 @@ done
 
 udevadm settle
 
-mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/mapper/isw*p[123]
+mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 \
+       /dev/mapper/isw*p1 \
+       /dev/mapper/isw*p2 \
+       /dev/mapper/isw*p3 
+
 # wait for the array to finish initailizing, otherwise this sometimes fails
 # randomly.
 mdadm -W /dev/md0
@@ -56,4 +60,5 @@ cp -a -t /sysroot /source/* && \
 umount /sysroot && \
 lvm lvchange -a n /dev/dracut/root && \
 echo "dracut-root-block-created" >/dev/sda
+mdadm --wait-clean /dev/md0
 poweroff -f