Force swap removal

This commit is contained in:
yalh76 2022-04-20 20:31:34 +02:00
parent e949d99c16
commit 668e146cd3

View file

@ -131,6 +131,8 @@ LXC_RESET () {
LXC_STOP $LXC_NAME
swapoff "$(lxc storage get default source)/containers/$LXC_NAME/rootfs/swap" 2>/dev/null
lxc delete $LXC_NAME --force 2>/dev/null
}