1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2024-11-03 15:04:22 +00:00
os-autoinst-distri-fedora/lib
Adam Williamson 56060ff8bd Simplify and improve how we get to 'linux' line in grub
That whole creaky edifice of conditionals that figured out how
many times to press 'down' was a mess I always hated, and I just
found out that the fix for BLS wasn't complete - I'd assumed in
writing it that systems weren't being migrated to BLS on upgrade
to F30, but actually they are. This makes that design very hard
as we'd have had to find a way to change the number of 'down'
presses part-way through update tests, and all the ways I can
think of to do that would've made this even sillier.

Happily I managed to come up with what looks like a much simpler
approach: just go from the bottom. It seems that in every setup
I can think of to check - all three arches, BLS, no BLS, pre-
install, post-install - the linux line is two lines up from the
bottom of the config stanza (the last line is blank, and the
last line but one is the initramfs line). So we can just press
down 50 times (to make damn sure we're at the bottom) then press
up twice and we should be in the right place, no matter the arch,
the release, or if BLS is in use or not. Whew.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
2018-11-30 14:17:01 -08:00
..
anaconda.pm Same workaround as last commit, for device type 2018-06-15 14:34:56 -07:00
anacondatest.pm Use longer timeout for root console switch after liveinst 2018-10-06 08:44:34 -07:00
fedoradistribution.pm drop our implementation of script_run in favour of os-autoinst 2016-10-20 09:24:48 -07:00
freeipa.pm Handle Xorg starting unusually slowly, but soft fail (#1622254) 2018-08-24 15:39:16 -07:00
installedtest.pm Use better pattern for checking if there are coredumps 2018-04-04 14:13:39 -07:00
packagetest.pm Handle KDE update test when KDE has aleady found updates 2018-03-28 19:53:19 -07:00
tapnet.pm Add support for testing updates 2017-02-22 11:33:32 -08:00
utils.pm Simplify and improve how we get to 'linux' line in grub 2018-11-30 14:17:01 -08:00