diff options
author | andrea rota <a@xelera.eu> | 2011-12-21 12:10:47 +0000 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@free.fr> | 2012-01-05 23:35:26 +0100 |
commit | aa198728a83e7016cd02583349fce1f5b1a60c66 (patch) | |
tree | a3996987247e1aabf6e6aeab8479f0e0acb00033 /src | |
parent | lxc: add Bugs section to lxc-monitor(1) (diff) | |
download | lxc-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>
Diffstat (limited to 'src')
-rw-r--r-- | src/lxc/lxc-destroy.in | 2 |
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 |