]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
limit rm to rootfs, avoiding nuking of any bind mounts from
authorandrea rota <a@xelera.eu>
Wed, 21 Dec 2011 12:10:47 +0000 (12:10 +0000)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 5 Jan 2012 22:35:26 +0000 (23:35 +0100)
the host

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/lxc-destroy.in

index dda48e681ba4445a13cde49af952d150864149ce..c662c1f52231e0b62948114e83ef7d359f692d67 100644 (file)
@@ -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