mirror of
https://git.proxmox.com/git/mirror_lxc
synced 2025-08-08 10:21:55 +00:00
limit rm to rootfs, avoiding nuking of any bind mounts from
the host Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
This commit is contained in:
parent
d73ef6ec75
commit
aa198728a8
@ -87,4 +87,4 @@ if [ -b $rootdev -o -h $rootdev ]; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
# recursively remove the container to remove old container configuration
|
# recursively remove the container to remove old container configuration
|
||||||
rm -rf --preserve-root $lxc_path/$lxc_name
|
rm -rf --one-file-system --preserve-root $lxc_path/$lxc_name
|
||||||
|
Loading…
Reference in New Issue
Block a user