Skip to content

Commit

Permalink
Fix boot from cdrom for svirt/libvirt using qemu
Browse files Browse the repository at this point in the history
  • Loading branch information
foursixnine committed Jul 18, 2019
1 parent c03b61a commit 201c592
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/installation/bootloader_svirt.pm
Expand Up @@ -82,11 +82,13 @@ sub run {
if (check_var('BOOTFROM', 'c')) {
$boot_device = 'hd';
}
elsif (check_var('BOOTFROM', 'd')) {
elsif (check_var('BOOTFROM', 'd') || (get_var('ISO') && !get_var('BOOT_HDD_IMAGE'))) {
$boot_device = 'cdrom';
}
else {
get_var('ISO') ? $boot_device = 'cdrom' : $boot_device = 'hd';
} else {
record_info("No boot medium", "Failed to select a bootable medium, please check ISO,"
. "BOOT_FROM and BOOT_HDD_IMAGE settings",
result => 'fail'
);
}
# Does not make any difference on VMware. For ad hoc device selection
# see vmware_select_boot_device_from_menu().
Expand Down

0 comments on commit 201c592

Please sign in to comment.