mirror of
https://github.com/YunoHost/package_check.git
synced 2024-09-03 20:06:20 +02:00
Disable also swapfiles in /var/lib/lxd (in setups where lxd ain't installed using snap)
This commit is contained in:
parent
5270cd2c6b
commit
7a0abea251
1 changed files with 1 additions and 0 deletions
|
@ -102,6 +102,7 @@ LXC_STOP () {
|
|||
LXC_RESET () {
|
||||
timeout 30 lxc stop --timeout 15 $LXC_NAME --force 2>/dev/null
|
||||
swapoff /var/snap/lxd/common/lxd/containers/$LXC_NAME/rootfs/swap_* 2>/dev/null
|
||||
swapoff /var/lib/lxd/containers/$LXC_NAME/rootfs/swap_* 2>/dev/null
|
||||
lxc delete $LXC_NAME --force 2>/dev/null
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue