mirror of
https://github.com/rocky-linux/os-autoinst-distri-rocky.git
synced 2024-12-22 02:38:31 +00:00
Fix 'clear' after login in French
...because it comes out as 'cleqr'. Note, this may be fragile if we start doing more stuff post-install, but for now I think it's safe, I don't *think* we should ever hit this after running `loadkeys us`. Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
parent
0b1d481ae1
commit
501b4bccc8
16
lib/utils.pm
16
lib/utils.pm
@ -237,9 +237,11 @@ sub console_login {
|
||||
assert_screen [$good, 'console_password_required'], 30;
|
||||
# on a live image, just the user name will be enough
|
||||
if (match_has_tag $good) {
|
||||
# clear the screen (so the remaining login prompt text doesn't
|
||||
# confuse subsequent runs of this)
|
||||
type_string "clear\n";
|
||||
# clear the screen (so the remaining login prompt text
|
||||
# doesn't confuse subsequent runs of this)
|
||||
my $clearstr = "clear\n";
|
||||
$clearstr = "cleqr\n" if (get_var("LANGUAGE") eq 'french');
|
||||
type_string $clearstr;
|
||||
_console_login_finish();
|
||||
return;
|
||||
}
|
||||
@ -265,9 +267,11 @@ sub console_login {
|
||||
$timeout = 90 if (get_var("ARCH") eq "aarch64");
|
||||
assert_screen($good, $timeout);
|
||||
}
|
||||
# clear the screen (so the remaining login prompt text doesn't
|
||||
# confuse subsequent runs of this)
|
||||
type_string "clear\n";
|
||||
# clear the screen (so the remaining login prompt text
|
||||
# doesn't confuse subsequent runs of this)
|
||||
my $clearstr = "clear\n";
|
||||
$clearstr = "cleqr\n" if (get_var("LANGUAGE") eq 'french');
|
||||
type_string $clearstr;
|
||||
}
|
||||
_console_login_finish();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user