diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-02-14 11:48:56 +0100 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2024-02-17 12:49:44 +0100 |
commit | 1b0cf0366814f3ec103d669ed151bc5b3a144563 (patch) | |
tree | 43ac25a7b56aa7fcd57005fdaaac7096d6eb0a4a /test/TEST-55-OOMD/test.sh | |
parent | test: make TEST-08-INITRD slightly less annoying to debug (diff) | |
download | systemd-1b0cf0366814f3ec103d669ed151bc5b3a144563.tar.xz systemd-1b0cf0366814f3ec103d669ed151bc5b3a144563.zip |
test: use btrfs' mkswapfile on btrfs
So it's created automagically with proper attributes.
Diffstat (limited to 'test/TEST-55-OOMD/test.sh')
-rwxr-xr-x | test/TEST-55-OOMD/test.sh | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/test/TEST-55-OOMD/test.sh b/test/TEST-55-OOMD/test.sh index 64e2360b08..9a9cdecf70 100755 --- a/test/TEST-55-OOMD/test.sh +++ b/test/TEST-55-OOMD/test.sh @@ -15,9 +15,7 @@ test_append_files() { # Create a swap file ( image_install mkswap swapon swapoff stress - - dd if=/dev/zero of="${initdir:?}/swapfile" bs=1M count=48 - chmod 0600 "${initdir:?}/swapfile" + 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" <<EOF |