Fix post-install bootloader args on aarch64

Seems aarch64 needs 12 'down' key presses like ppc64, not 13
like x86_64. Tweak how this is done a bit; the ternary wasn't
elegant any more with the aarch64 change, so just get rid of it.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2018-03-20 14:05:00 -07:00
parent e2a8c34e86
commit 20c361999b

View File

@ -228,15 +228,17 @@ sub do_bootloader {
} }
else { else {
send_key "e"; send_key "e";
# ternary: 13 'downs' to reach the kernel line for installed # 2 'downs' to reach the kernel line for UEFI installer,
# system, 2 for UEFI installer # 13 'downs' on installed x86_64, 12 'downs' on installed
# since 20170328 PowerPC Rawhide and f26 are failing with 13 # aarch64 / ppc64 (there's a 'set_root' line on x86_64 but
# but work with 12 and added sleep 1 in loop. # not on aarch64 or ppc64)
my $presses; my $presses = 2;
if (get_var('OFW')) { if ($args{postinstall}) {
$presses = $args{postinstall} ? 12 : 2; if (get_var('OFW') || get_var('ARCH') eq 'aarch64') {
$presses = 12;
} else { } else {
$presses = $args{postinstall} ? 13 : 2; $presses = 13;
}
} }
foreach my $i (1..$presses) { foreach my $i (1..$presses) {
sleep 1; # seems to have missed one down if too fast. sleep 1; # seems to have missed one down if too fast.