diff --git a/test/TEST-08-INITRD/test.sh b/test/TEST-08-INITRD/test.sh index caa27f69fdf..e8dbb2c36c6 100755 --- a/test/TEST-08-INITRD/test.sh +++ b/test/TEST-08-INITRD/test.sh @@ -3,6 +3,10 @@ set -e TEST_DESCRIPTION="Test various scenarios involving transition from/to initrd" +# Note: for debugging systemd.journald.max_level_console=debug might come in handy +# as well, but it's not used here since it's _very_ noisy and slows the test +# down a lot +KERNEL_APPEND="${KERNEL_APPEND:-} systemd.journald.forward_to_console=1" TEST_NO_NSPAWN=1 # shellcheck source=test/test-functions diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index 64e2360b081..5e3096315ca 100755 --- a/test/TEST-55-OOMD/test.sh +++ b/test/TEST-55-OOMD/test.sh @@ -12,20 +12,17 @@ TEST_NO_NSPAWN=1 . "${TEST_BASE_DIR:?}/test-functions" test_append_files() { - # Create a swap file - ( - image_install mkswap swapon swapoff stress + local workspace="${1:?}" - dd if=/dev/zero of="${initdir:?}/swapfile" bs=1M count=48 - chmod 0600 "${initdir:?}/swapfile" + image_install mkswap swapon swapoff stress + image_install -o btrfs - mkdir -p "${initdir:?}/etc/systemd/system/init.scope.d/" - cat >>"${initdir:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" <"${workspace:?}/etc/systemd/system/init.scope.d/test-55-oomd.conf" <