Skip to content

Commit

Permalink
bootloader_uefi: Fix sdboot check
Browse files Browse the repository at this point in the history
Commit cf9b9db ("bootloader_uefi: Fix sdboot check") made the check
too generic and it broke Tumbleweed DVD flavor which starts with grub2
image and later change to systemd-boot. Fix it by adding bootloader-sdboot
to the array along with other needles and later use match_has_tag to return
early if is_bootloader_sdboot.

Signed-off-by: Ricardo B. Marliere <[email protected]>
  • Loading branch information
rbmarliere committed Dec 19, 2024
1 parent 7c85092 commit c9f5026
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions tests/installation/bootloader_uefi.pm
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,6 @@ sub run {
}
}

if (is_bootloader_sdboot) {
assert_screen("bootloader-sdboot");
return;
}

if (get_var("IPXE") && !is_usb_boot) {
sleep 60;
return;
Expand Down Expand Up @@ -111,12 +106,15 @@ sub run {
assert_screen("bootloader-grub2-agama", $bootloader_timeout);
}
else {
assert_screen([qw(bootloader-shim-import-prompt bootloader-grub2)], $bootloader_timeout);
assert_screen([qw(bootloader-shim-import-prompt bootloader-grub2 bootloader-sdboot)], $bootloader_timeout);
}
if (match_has_tag("bootloader-shim-import-prompt")) {
send_key "down";
send_key "ret";
assert_screen "bootloader-grub2", $bootloader_timeout;
assert_screen([qw(bootloader-grub2 bootloader-sdboot)], $bootloader_timeout);
}
if (match_has_tag("bootloader-sdboot")) {
return if is_bootloader_sdboot;
}
if (get_var('DISABLE_SECUREBOOT') && (get_var('BACKEND') eq 'qemu')) {
$self->tianocore_disable_secureboot;
Expand Down

0 comments on commit c9f5026

Please sign in to comment.