summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorHarald Hoyer <harald@redhat.com>2009-08-14 17:25:37 +0200
committerHarald Hoyer <harald@redhat.com>2009-08-14 17:27:50 +0200
commit5a8b143888a5cccefcb0341a967574e089fc8c4f (patch)
tree486d1b3a1070f5568c0311bc253eab8391a634bc /test
parent5bf0b329c9be5c7288d84a7cda88e6310ac53aba (diff)
downloaddracut-5a8b143888a5cccefcb0341a967574e089fc8c4f.tar.gz
dracut-5a8b143888a5cccefcb0341a967574e089fc8c4f.tar.bz2
dracut-5a8b143888a5cccefcb0341a967574e089fc8c4f.zip
TEST-10-RAID: new mdadm is picky about partitions
Diffstat (limited to 'test')
-rwxr-xr-xtest/TEST-10-RAID/create-root.sh10
-rwxr-xr-xtest/TEST-10-RAID/test.sh2
2 files changed, 6 insertions, 6 deletions
diff --git a/test/TEST-10-RAID/create-root.sh b/test/TEST-10-RAID/create-root.sh
index c2d48e50..bef32a05 100755
--- a/test/TEST-10-RAID/create-root.sh
+++ b/test/TEST-10-RAID/create-root.sh
@@ -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
diff --git a/test/TEST-10-RAID/test.sh b/test/TEST-10-RAID/test.sh
index 00f8db68..1b9e931d 100755
--- a/test/TEST-10-RAID/test.sh
+++ b/test/TEST-10-RAID/test.sh
@@ -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