blob: c93adb33a868e5a1f6210f10d02a568ac9036768 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
--- ./src/lxc/lxc-destroy.in.orig 2013-04-15 07:38:58.383545701 +0000
+++ ./src/lxc/lxc-destroy.in 2013-04-15 07:42:22.552123148 +0000
@@ -137,10 +137,10 @@
btrfs subvolume delete "$rootdev"
else
# In case rootfs is not under $lxc_path/$lxc_name, remove it
- rm -rf --one-file-system --preserve-root $rootdev
+ find $rootdev -xdev -delete
fi
fi
fi
# recursively remove the container to remove old container configuration
-rm -rf --one-file-system --preserve-root $lxc_path/$lxc_name
+find $lxc_path/$lxc_name -xdev -delete
|