mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
TEST-55-OOMD: swapoff before adding new swapfile
When running test images built with read-only /usr a swap partition is likely so needs to be turned off first.
This commit is contained in:
committed by
Daan De Meyer
parent
f1d3962e61
commit
9be49de41f
@@ -23,6 +23,7 @@ rm -rf /run/systemd/system/testsuite-55-testbloat.service.d
|
||||
|
||||
# Activate swap file if we are in a VM
|
||||
if systemd-detect-virt --vm --quiet; then
|
||||
swapoff --all
|
||||
if [[ "$(findmnt -n -o FSTYPE /)" == btrfs ]]; then
|
||||
btrfs filesystem mkswapfile -s 64M /swapfile
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user