From 9699e61b3551130cce495ce352815070a0e0b41c Mon Sep 17 00:00:00 2001 From: gryf Date: Sun, 3 Oct 2021 19:08:15 +0200 Subject: [PATCH] Exit, if image checksum is wrong. --- box.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/box.py b/box.py index ace24cb..b49ffa9 100755 --- a/box.py +++ b/box.py @@ -1150,6 +1150,9 @@ def vmcreate(args, conf=None): image = get_image_object(vbox, conf.version, image=conf.distro) path_to_disk = image.convert_to_vdi(conf.name + '.vdi', conf.disk_size) + if not path_to_disk: + return 21 + iso = IsoImage(conf) path_to_iso = iso.get_generated_image() if not path_to_iso: