1
0
mirror of https://github.com/gryf/boxpy.git synced 2025-12-18 21:10:17 +01:00

Exit, if image checksum is wrong.

This commit is contained in:
2021-10-03 19:08:15 +02:00
parent f46432546e
commit 9699e61b35

3
box.py
View File

@@ -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: