TEST-55-OOMD: use swap file instead of partition
The partition seems not to work on Ubuntu for some reason, use a swap file instead
This commit is contained in:
@@ -24,6 +24,13 @@ fi
|
||||
|
||||
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
|
||||
mkswap /swapfile
|
||||
swapon /swapfile
|
||||
swapon --show
|
||||
fi
|
||||
|
||||
# Configure oomd explicitly to avoid conflicts with distro dropins
|
||||
mkdir -p /run/systemd/oomd.conf.d/
|
||||
cat >/run/systemd/oomd.conf.d/99-oomd-test.conf <<EOF
|
||||
|
||||
Reference in New Issue
Block a user