From: Harald Hoyer Date: Tue, 3 Mar 2020 15:56:16 +0000 (+0100) Subject: TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation X-Git-Tag: 050~10 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7403700dfb6fbe696d195dc5db941e40f079be0;p=thirdparty%2Fdracut.git TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation --- diff --git a/test/TEST-04-FULL-SYSTEMD/create-root.sh b/test/TEST-04-FULL-SYSTEMD/create-root.sh index d89c64943..5de376c70 100755 --- a/test/TEST-04-FULL-SYSTEMD/create-root.sh +++ b/test/TEST-04-FULL-SYSTEMD/create-root.sh @@ -38,7 +38,6 @@ btrfs filesystem sync /root/usr btrfs filesystem sync /root umount /root/usr umount /root -echo "dracut-root-block-created" | dd oflag=direct,dsync of=/dev/sda1 +echo "dracut-root-block-created" | dd oflag=direct,dsync of=/dev/sdc sync poweroff -f - diff --git a/test/TEST-04-FULL-SYSTEMD/test.sh b/test/TEST-04-FULL-SYSTEMD/test.sh index 77d3a7ff1..3a544d7c1 100755 --- a/test/TEST-04-FULL-SYSTEMD/test.sh +++ b/test/TEST-04-FULL-SYSTEMD/test.sh @@ -242,12 +242,14 @@ EOF # Invoke KVM and/or QEMU to actually create the target filesystem. rm -rf -- $TESTDIR/overlay + dd if=/dev/zero of=$TESTDIR/result bs=1M count=1 $testdir/run-qemu \ -drive format=raw,index=0,media=disk,file=$TESTDIR/root.btrfs \ -drive format=raw,index=1,media=disk,file=$TESTDIR/usr.btrfs \ + -drive format=raw,index=2,media=disk,file=$TESTDIR/result \ -append "root=/dev/fakeroot rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \ -initrd $TESTDIR/initramfs.makeroot || return 1 - if ! grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs; then + if ! grep -F -m 1 -q dracut-root-block-created $TESTDIR/result; then echo "Could not create root filesystem" return 1 fi