Commit 921ceb26 by Stéphane Graber

lxc-start-ephemeral: Fix typo causing crash at startup

Apparently a ")" was dropped in a recent change, causing lxc-start-ephemeral to fail to start completely (invalid syntax). Signed-off-by: 's avatarStéphane Graber <stgraber@ubuntu.com>
parent 5b12984b
......@@ -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.get_config_item("lxc.rootfs"), dest.get_config_item("lxc.rootfs")))
dest.set_config_item("lxc.hook.post-stop",
os.path.join(dest_path, "post-stop"))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment