From 1f63cd29eb5956e091cfbaacda27ee92e9b8dbe8 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Fri, 17 Oct 2025 15:26:27 -0700 Subject: [PATCH] _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 --- tests/_do_install_and_reboot.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/_do_install_and_reboot.pm b/tests/_do_install_and_reboot.pm index 7f5e3101..e3746f32 100644 --- a/tests/_do_install_and_reboot.pm +++ b/tests/_do_install_and_reboot.pm @@ -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")) {