Browse Source

TEST-03-USR-MOUNT: more debugging

master
Harald Hoyer 5 years ago
parent
commit
3c5036a62f
  1. 2
      test/TEST-03-USR-MOUNT/create-root.sh
  2. 6
      test/TEST-03-USR-MOUNT/test.sh

2
test/TEST-03-USR-MOUNT/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
@ -37,4 +38,3 @@ umount /root @@ -37,4 +38,3 @@ umount /root
echo "dracut-root-block-created" >/dev/sda1
sync
poweroff -f


6
test/TEST-03-USR-MOUNT/test.sh

@ -118,8 +118,10 @@ test_setup() { @@ -118,8 +118,10 @@ test_setup() {
-m 512M -smp 2 -nographic -net none \
-append "root=/dev/dracut/root 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