]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
lxc-start-ephemeral: Wipe the whole container on exit, not just the rootfs
authorStéphane Graber <stgraber@ubuntu.com>
Wed, 31 Oct 2012 07:20:52 +0000 (08:20 +0100)
committerStéphane Graber <stgraber@ubuntu.com>
Mon, 12 Nov 2012 18:18:32 +0000 (13:18 -0500)
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/lxc-start-ephemeral.in

index 2eb6157d98a28f1f76ee2f0216e3e868007d8868..3366209443f9d799639f470e7254503ede2fcf54 100644 (file)
@@ -218,7 +218,7 @@ if not args.keep_data:
         os.fchmod(fd.fileno(), 0o755)
         fd.write("""#!/bin/sh
 [ -d "%s" ] && rm -Rf "%s"
-""" % (dest.get_config_item("lxc.rootfs"), dest.get_config_item("lxc.rootfs")))
+""" % (dest_path, dest_path))
 
     dest.set_config_item("lxc.hook.post-stop",
                             os.path.join(dest_path, "post-stop"))