mirror of
https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git
synced 2024-11-22 05:53:09 +00:00
Drop syslinux handling from do_bootloader
F36 is now EOL, and from F37 onwards, grub is the bootloader in any situation where it actually matters to do_bootloader (which is only when we're editing parameters). We do still use syslinux in the PXE tests on x86_64 BIOS, but we don't edit the parameters in that case. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
78c52cedc2
commit
077a31835a
@ -319,7 +319,7 @@ sub console_loadkeys_us {
|
||||
}
|
||||
|
||||
sub do_bootloader {
|
||||
# Handle bootloader screen. 'bootloader' is syslinux or grub.
|
||||
# Handle bootloader screen.
|
||||
# 'uefi' is whether this is a UEFI install, will get_var UEFI if
|
||||
# not explicitly set. 'postinstall' is whether we're on an
|
||||
# installed system or at the installer (this matters for how many
|
||||
@ -339,9 +339,7 @@ sub do_bootloader {
|
||||
ofw => get_var("OFW"),
|
||||
@_
|
||||
);
|
||||
# if not postinstall, not UEFI, not ofw, and not F37+, syslinux
|
||||
my $relnum = get_release_number;
|
||||
$args{bootloader} //= ($args{uefi} || $args{postinstall} || $args{ofw}) || $relnum > 36 ? "grub" : "syslinux";
|
||||
# we use the firmware-type specific tags because we want to be
|
||||
# sure we actually did a UEFI boot
|
||||
my $boottag = "bootloader_bios";
|
||||
@ -359,10 +357,6 @@ sub do_bootloader {
|
||||
send_key "up";
|
||||
}
|
||||
if ($args{params}) {
|
||||
if ($args{bootloader} eq "syslinux") {
|
||||
send_key "tab";
|
||||
}
|
||||
else {
|
||||
send_key "e";
|
||||
# we need to get to the 'linux' line here, and grub does
|
||||
# not have any easy way to do that. Depending on the arch
|
||||
@ -380,7 +374,6 @@ sub do_bootloader {
|
||||
sleep 1;
|
||||
send_key 'up';
|
||||
send_key "end";
|
||||
}
|
||||
# Change type_string by type_safely because keyboard polling
|
||||
# in SLOF usb-xhci driver failed sometimes in powerpc
|
||||
type_safely " $args{params}";
|
||||
|
Loading…
Reference in New Issue
Block a user