diff options
author | Harald Hoyer <harald@redhat.com> | 2009-10-27 15:11:35 +0100 |
---|---|---|
committer | Harald Hoyer <harald@redhat.com> | 2009-10-27 16:02:56 +0100 |
commit | 121e7b3e2dec2d97b221d545e74795bd4ee3b7ec (patch) | |
tree | c75da74f41cb88286176594b0fafde7005103f38 /test/TEST-14-IMSM | |
parent | 15c82415c2b7cabfd8470daf836565ca3da2254f (diff) | |
download | dracut-121e7b3e2dec2d97b221d545e74795bd4ee3b7ec.tar.gz dracut-121e7b3e2dec2d97b221d545e74795bd4ee3b7ec.tar.bz2 dracut-121e7b3e2dec2d97b221d545e74795bd4ee3b7ec.zip |
TEST-14-IMSM/create-root.sh: wait until md0 is ready synced
Diffstat (limited to 'test/TEST-14-IMSM')
-rwxr-xr-x | test/TEST-14-IMSM/create-root.sh | 7 |
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 78ec7936..44f62723 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 |