From: andrea rota Date: Wed, 21 Dec 2011 12:10:47 +0000 (+0000) Subject: limit rm to rootfs, avoiding nuking of any bind mounts from X-Git-Tag: lxc-0.8.0-rc2~55 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aa198728a83e7016cd02583349fce1f5b1a60c66;p=thirdparty%2Flxc.git limit rm to rootfs, avoiding nuking of any bind mounts from the host Signed-off-by: Daniel Lezcano --- diff --git a/src/lxc/lxc-destroy.in b/src/lxc/lxc-destroy.in index dda48e681..c662c1f52 100644 --- a/src/lxc/lxc-destroy.in +++ b/src/lxc/lxc-destroy.in @@ -87,4 +87,4 @@ if [ -b $rootdev -o -h $rootdev ]; then fi fi # 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