]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-10-RAID: new mdadm is picky about partitions
authorHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 15:25:37 +0000 (17:25 +0200)
committerHarald Hoyer <harald@redhat.com>
Fri, 14 Aug 2009 15:27:50 +0000 (17:27 +0200)
test/TEST-10-RAID/create-root.sh
test/TEST-10-RAID/test.sh

index c2d48e50f126bea8f11d5ebfc16fc638d616d51f..bef32a05db10947fc4304a05f1332447681a77fa 100755 (executable)
@@ -5,11 +5,11 @@ for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do
 done
 udevadm control --reload-rules
 # save a partition at the beginning for future flagging purposes
-sfdisk -C 640 -H 2 -S 32 -L /dev/sda <<EOF
-,1
-,213
-,213
-,213
+sfdisk -C 1280 -H 2 -S 32 -L /dev/sda <<EOF
+,16
+,400
+,400
+,400
 EOF
 mdadm --create /dev/md0 --run --auto=yes --level=5 --raid-devices=3 /dev/sda2 /dev/sda3 /dev/sda4
 # wait for the array to finish initailizing, otherwise this sometimes fails
index 00f8db6895a00896ed8c7becdc0d535a3f90081e..1b9e931d79e2a4425ea763126e9ffa21504efa79 100755 (executable)
@@ -16,7 +16,7 @@ test_run() {
 
 test_setup() {
     # Create the blank file to use as a root filesystem
-    dd if=/dev/zero of=root.ext2 bs=1M count=20
+    dd if=/dev/zero of=root.ext2 bs=1M count=40
 
     kernel=$KVERSION
     # Create what will eventually be our root filesystem onto an overlay