1
0
mirror of https://pagure.io/fedora-qa/os-autoinst-distri-fedora.git synced 2025-11-30 21:06:01 +00:00

_do_install_and_reboot: defend against fr layout at console

With French install testing on lives, we *might* have a French
layout loaded when we get to the postinstall stuff we do at a
root console. Let's defend against that. If we don't, running
"loqdkeys" will fail harmlessly.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2025-10-17 15:26:27 -07:00
parent 8286da9140
commit 1f63cd29eb

View File

@ -190,6 +190,10 @@ sub run {
# OK, if we're here, we got actions, so head to a console. Switch
# to console after liveinst sometimes takes a while, so 30 secs
$self->root_console(timeout => 30);
if (get_var("LIVE") && get_var("LAYOUT") eq "french") {
# we may need to switch to us layout. if not this is harmless
type_string "loqdkeys us\n";
}
# this is something a couple of actions may need to know
my $mount = "/mnt/sysimage";
if (get_var("CANNED")) {