summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-10-27 15:11:35 +0100
committerHarald Hoyer <harald@redhat.com>2009-10-27 16:02:56 +0100
commit121e7b3e2dec2d97b221d545e74795bd4ee3b7ec (patch)
treec75da74f41cb88286176594b0fafde7005103f38
parent15c82415c2b7cabfd8470daf836565ca3da2254f (diff)
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced
-rwxr-xr-xtest/TEST-14-IMSM/create-root.sh7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/TEST-14-IMSM/create-root.sh b/test/TEST-14-IMSM/create-root.sh
index 78ec793..44f6272 100755
--- a/test/TEST-14-IMSM/create-root.sh
+++ b/test/TEST-14-IMSM/create-root.sh
@@ -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