mirror of
https://github.com/systemd/systemd.git
synced 2025-01-10 05:18:17 +03:00
test: delete /swapfile after swapoff
[ 23.608342] TEST-55-OOMD.sh[689]: + btrfs filesystem mkswapfile -s 64M /swapfile [ 23.651930] TEST-55-OOMD.sh[704]: ERROR: cannot create new swapfile: File exists
This commit is contained in:
parent
57feaaece3
commit
78b032d727
@ -24,6 +24,7 @@ fi
|
||||
# Activate swap file if we are in a VM
|
||||
if systemd-detect-virt --vm --quiet; then
|
||||
swapoff --all
|
||||
rm -f /swapfile
|
||||
if [[ "$(findmnt -n -o FSTYPE /)" == btrfs ]]; then
|
||||
btrfs filesystem mkswapfile -s 64M /swapfile
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user