From fd07ec7cb824e4dce3091f105a129e470bdb30f3 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Thu, 6 Sep 2018 09:50:10 +0200 Subject: [PATCH] guess what? more vars --- lxc-build | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lxc-build b/lxc-build index 63d2ebd..bdfc682 100755 --- a/lxc-build +++ b/lxc-build @@ -93,7 +93,7 @@ class LXCImage: rootfs_path = self.layers[0] else: # Multiple lower overlayfs layers are ordered from right to left (lower2:lower1:rootfs:upper) - rootfs_path = 'overlay:{}:{}'.format(':'.join(self.layers[:-1][::-1], self.layers[-1])) + rootfs_path = 'overlay:{}:{}'.format(':'.join(self.layers[:-1][::-1]), self.layers[-1]) mount_entries = '\n'.join(['lxc.mount.entry = {} none bind 0 0'.format(m) for m in self.mounts]) with open(os.path.join(LXC_ROOT, self.name, 'config'), 'w') as fd: fd.write(CONFIG_TEMPLATE.format(name=self.name, rootfs=rootfs_path, mounts=mount_entries, uid=self.uid, gid=self.gid, cmd=self.cmd)) @@ -122,7 +122,7 @@ class LXCImage: copy_tree(src, dst) def add_mount(self, src, dst): - mounts.append('{} {}'.format(src, dst)) + self.mounts.append('{} {}'.format(src, dst)) self.rebuild_config() def set_user(self, uid, gid):