From 5305bce3f9a2772dd29089f086ceab690d531e72 Mon Sep 17 00:00:00 2001 From: Martin Sehnoutka Date: Mon, 24 Jun 2019 13:35:11 +0200 Subject: [PATCH] correction for the qcow2 assembler --- assemblers/io.weldr.qcow2 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/assemblers/io.weldr.qcow2 b/assemblers/io.weldr.qcow2 index 569a611b..abfa853c 100755 --- a/assemblers/io.weldr.qcow2 +++ b/assemblers/io.weldr.qcow2 @@ -43,11 +43,10 @@ def loop_device(image): finally: subprocess.run(["losetup", "-d", loop], check=True) -def main(tree, input_dir, options): +def main(tree, input_dir, output_dir, options): filename = options["filename"] partition_table_id = options["partition_table_id"] root_fs_uuid = options["root_fs_uuid"] - output_dir = options["output_dir"] # Create a working directory on a tmpfs, maybe we should implicitly # always do this. @@ -79,5 +78,5 @@ def main(tree, input_dir, options): if __name__ == '__main__': args = json.load(sys.stdin) - r = main(args["tree"], args["input_dir"], args["options"]) + r = main(args["tree"], args["input_dir"], args["output_dir"], args["options"]) sys.exit(r)