Commit 538e290d authored by Łukasz Nowak's avatar Łukasz Nowak

kvm: Hold start until images are ready

This will minimise amount of needless restarts.
parent cd008822
Pipeline #15338 failed with stage
in 0 seconds
......@@ -55,7 +55,7 @@ md5sum = b7e87479a289f472b634a046b44b5257
[template-kvm-run]
filename = template/template-kvm-run.in
md5sum = 26297850e12d2e6c4f8c86ccb547bdd0
md5sum = 6f59f34b570124d622dd1ef3cbfb0291
[template-kvm-controller]
filename = template/kvm-controller-run.in
......
......@@ -375,6 +375,9 @@ else:
'-drive',
'file=%s,media=cdrom' % (link,)
])
else:
raise ValueError('boot-image-url-select not ready yet')
if boot_image_url_list_json_config:
# Support boot-image-url-list
with open(boot_image_url_list_json_config) as fh:
......@@ -387,6 +390,8 @@ else:
'-drive',
'file=%s,media=cdrom' % (link,)
])
else:
raise ValueError('boot-image-url-list not ready yet')
# Always add by default the default image
kvm_argument_list.extend([
'-drive', 'file=%s,media=cdrom' % default_cdrom_iso
......
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