From: Harald Hoyer Date: Thu, 22 Jan 2015 15:02:54 +0000 (+0100) Subject: test: use the new sfdisk syntax without disk geometry X-Git-Tag: 041~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8a430ab25bbad95860de05339d94530f7a055cf2;p=thirdparty%2Fdracut.git test: use the new sfdisk syntax without disk geometry --- diff --git a/test/TEST-01-BASIC/create-root.sh b/test/TEST-01-BASIC/create-root.sh index 3a62afd1c..8b28c3098 100755 --- a/test/TEST-01-BASIC/create-root.sh +++ b/test/TEST-01-BASIC/create-root.sh @@ -7,8 +7,8 @@ rm -f -- /etc/lvm/lvm.conf udevadm control --reload set -e # save a partition at the beginning for future flagging purposes -sfdisk -C 2560 -H 2 -S 32 -L /dev/sda <keyfile diff --git a/test/TEST-14-IMSM/create-root.sh b/test/TEST-14-IMSM/create-root.sh index 83a7fba69..f637ec883 100755 --- a/test/TEST-14-IMSM/create-root.sh +++ b/test/TEST-14-IMSM/create-root.sh @@ -22,13 +22,16 @@ for s in $SETS; do done udevadm settle +sleep 1 +udevadm settle + sfdisk -g /dev/mapper/isw*Test0 # save a partition at the beginning for future flagging purposes -sfdisk -C 2560 -H 2 -S 32 -L /dev/mapper/isw*Test0 </dev/sda1 diff --git a/test/TEST-15-BTRFSRAID/test.sh b/test/TEST-15-BTRFSRAID/test.sh index 569b306a9..761d5bd76 100755 --- a/test/TEST-15-BTRFSRAID/test.sh +++ b/test/TEST-15-BTRFSRAID/test.sh @@ -13,7 +13,7 @@ test_run() { -net none -kernel /boot/vmlinuz-$KVERSION \ -append "root=LABEL=root rw rd.retry=3 rd.info console=ttyS0,115200n81 selinux=0 $DEBUGFAIL" \ -initrd $TESTDIR/initramfs.testing - dd if=$DISKIMAGE bs=512 count=2 | grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1 + dd if=$DISKIMAGE bs=512 count=4 skip=2048 | grep -F -m 1 -q dracut-root-block-success $DISKIMAGE || return 1 } test_setup() { @@ -82,7 +82,7 @@ test_setup() { -append "root=/dev/fakeroot rw quiet console=ttyS0,115200n81 selinux=0" \ -initrd $TESTDIR/initramfs.makeroot || return 1 - dd if=$DISKIMAGE bs=512 count=2 | grep -F -m 1 -q dracut-root-block-created || return 1 + dd if=$DISKIMAGE bs=512 count=4 skip=2048 | grep -F -m 1 -q dracut-root-block-created || return 1 ( export initdir=$TESTDIR/overlay diff --git a/test/TEST-17-LVM-THIN/create-root.sh b/test/TEST-17-LVM-THIN/create-root.sh index 416c3c3f0..117d13415 100755 --- a/test/TEST-17-LVM-THIN/create-root.sh +++ b/test/TEST-17-LVM-THIN/create-root.sh @@ -6,11 +6,11 @@ done rm -f -- /etc/lvm/lvm.conf udevadm control --reload # save a partition at the beginning for future flagging purposes -sfdisk -C 2560 -H 2 -S 32 -L /dev/sda <