]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-create: add missing -P option for running lxc-destroy
authorHarald Dunkel <harald.dunkel@aixigo.de>
Fri, 3 May 2013 08:53:41 +0000 (10:53 +0200)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Mon, 6 May 2013 06:12:35 +0000 (01:12 -0500)
Signed-off-by: Harald Dunkel <harald.dunkel@aixigo.de>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-create.in

index 286ed6a0047cdbe4da4187208d376adaa9de17f5..d85450157b6d3b4a7632f4320973a5942d52e875 100644 (file)
@@ -316,7 +316,7 @@ cleanup() {
         zfs destroy "$zfs_root/$lxc_name" || true
     fi
 
-    ${bindir}/lxc-destroy -n $lxc_name
+    ${bindir}/lxc-destroy -n $lxc_name -P "$lxc_path"
     echo "$(basename $0): aborted" >&2
     exit 1
 }