From c7403700dfb6fbe696d195dc5db941e40f079be0 Mon Sep 17 00:00:00 2001 From: Harald Hoyer Date: Tue, 3 Mar 2020 16:56:16 +0100 Subject: [PATCH] TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation --- test/TEST-04-FULL-SYSTEMD/create-root.sh | 3 +-- test/TEST-04-FULL-SYSTEMD/test.sh | 4 +++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/test/TEST-04-FULL-SYSTEMD/create-root.sh b/test/TEST-04-FULL-SYSTEMD/create-root.sh index d89c6494..5de376c7 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 77d3a7ff..3a544d7c 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