aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandrea rota <a@xelera.eu>2011-12-21 12:10:47 +0000
committerDaniel Lezcano <daniel.lezcano@free.fr>2012-01-05 23:35:26 +0100
commitaa198728a83e7016cd02583349fce1f5b1a60c66 (patch)
treea3996987247e1aabf6e6aeab8479f0e0acb00033
parentlxc: add Bugs section to lxc-monitor(1) (diff)
downloadlxc-aa198728a83e7016cd02583349fce1f5b1a60c66.tar.gz
lxc-aa198728a83e7016cd02583349fce1f5b1a60c66.tar.bz2
lxc-aa198728a83e7016cd02583349fce1f5b1a60c66.zip
limit rm to rootfs, avoiding nuking of any bind mounts from
the host Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
-rw-r--r--src/lxc/lxc-destroy.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lxc/lxc-destroy.in b/src/lxc/lxc-destroy.in
index dda48e6..c662c1f 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