summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-05-26 08:56:10 +0000
committerDaniel Baumann <daniel.baumann@open-infrastructure.net>2016-06-03 11:37:19 +0000
commitf8a8b7ecd9d49377c77884e2d349fd46ba3abe72 (patch)
treec4d51b84158bea544eee50d478e8a261f9f2a69e
parentRemoving empty source directory of bind mounts in container stop command. (diff)
downloadcompute-tools-f8a8b7ecd9d49377c77884e2d349fd46ba3abe72.tar.xz
compute-tools-f8a8b7ecd9d49377c77884e2d349fd46ba3abe72.zip
Using safety measures of rm when removing containers because of (potentially) active bind mounts.
Signed-off-by: Daniel Baumann <daniel.baumann@open-infrastructure.net>
Diffstat (limited to '')
-rwxr-xr-xlib/container/remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/container/remove b/lib/container/remove
index d171d87..4f26d43 100755
--- a/lib/container/remove
+++ b/lib/container/remove
@@ -127,5 +127,5 @@ then
fi
# Run
-rm -rf "${MACHINES}/${NAME}"
+rm --preserve-root --one-file-system -rf "${MACHINES}/${NAME}"
rm -f "${CONFIG}/${NAME}.conf"