use TTY3 for login as root

This commit is contained in:
Trevor Cooper 2023-08-20 19:03:21 -07:00
parent d75b56be20
commit 072fc78d73
Signed by: tcooper
GPG Key ID: 52364D7BBCEB35B8

View File

@ -39,8 +39,13 @@ sub run {
}
}
# login
$self->root_console();
# switch to TTY3 for both, graphical and console tests
$self->root_console(tty => 3);
if (get_var("ROOT_PASSWORD")) {
console_login(user => "root", password => get_var("ROOT_PASSWORD"));
}
# We need entropy. Install rng-tools and start it up. Fedora uses haveged
# but Rocky Linux does not have it unless EPEL is used.
assert_script_run "dnf --assumeyes install rng-tools", 300;