]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
TEST-04-FULL-SYSTEMD: use seperate marker disk for root creation
authorHarald Hoyer <harald@redhat.com>
Tue, 3 Mar 2020 15:56:16 +0000 (16:56 +0100)
committerHarald Hoyer <harald@redhat.com>
Tue, 3 Mar 2020 15:56:43 +0000 (16:56 +0100)
test/TEST-04-FULL-SYSTEMD/create-root.sh
test/TEST-04-FULL-SYSTEMD/test.sh

index d89c64943077ff964514870c40a4242dc8d577c4..5de376c70e5c6d64c1ddc19b8e56d6fef56d24ea 100755 (executable)
@@ -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
-
index 77d3a7ff153a838b0ab776aed6c7e33f2e09b0f5..3a544d7c1da00b15b06fafe6545cefc52c04c7cc 100755 (executable)
@@ -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