Browse Source

TEST-04-FULL-SYSTEMD: report failure on rootfs creation

master
Harald Hoyer 5 years ago
parent
commit
074ac62576
  1. 1
      test/TEST-04-FULL-SYSTEMD/create-root.sh
  2. 6
      test/TEST-04-FULL-SYSTEMD/test.sh

1
test/TEST-04-FULL-SYSTEMD/create-root.sh

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#!/bin/sh
# don't let udev and this script step on eachother's toes
set -x
for x in 64-lvm.rules 70-mdadm.rules 99-mount-rules; do
> "/etc/udev/rules.d/$x"
done

6
test/TEST-04-FULL-SYSTEMD/test.sh

@ -256,8 +256,10 @@ EOF @@ -256,8 +256,10 @@ EOF
-m 512M -smp 2 -nographic -net none \
-append "root=/dev/fakeroot rw rootfstype=btrfs quiet console=ttyS0,115200n81 selinux=0" \
-initrd $TESTDIR/initramfs.makeroot || return 1
grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs || return 1

if ! grep -F -m 1 -q dracut-root-block-created $TESTDIR/root.btrfs; then
echo "Could not create root filesystem"
return 1
fi

(
export initdir=$TESTDIR/overlay

Loading…
Cancel
Save