[lxc-devel] [PATCH 2/4] lxc-create: add missing -P option for running lxc-destroy

Harald Dunkel harald.dunkel at aixigo.de
Fri May 3 08:53:41 UTC 2013


---
 src/lxc/lxc-create.in | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lxc/lxc-create.in b/src/lxc/lxc-create.in
index ebbdd7b..970d3ff 100644
--- a/src/lxc/lxc-create.in
+++ b/src/lxc/lxc-create.in
@@ -269,7 +269,7 @@ cleanup() {
         btrfs subvolume delete "$rootfs"
     fi
 
-    ${bindir}/lxc-destroy -n $lxc_name
+    ${bindir}/lxc-destroy -n $lxc_name -P "$lxc_path"
     echo "$(basename $0): aborted" >&2
     exit 1
 }
-- 
1.8.1.3





More information about the lxc-devel mailing list