Skip to content

Commit

Permalink
Choose tty7 for x11 console during Agama install
Browse files Browse the repository at this point in the history
  • Loading branch information
lkocman committed Sep 5, 2024
1 parent 20f3fa9 commit b545964
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/utils.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1525,6 +1525,7 @@ the session.

sub get_x11_console_tty {
my $new_sddm = (!is_sle('<15-SP6') && !is_leap('<15.6')) || is_krypton_argon;
# Agama uses tty7 for graphical install
if (check_var('DESKTOP', 'kde') || check_var('DESKTOP', 'lxqt')) {
return $new_sddm ? 2 : 7;
}
Expand Down
6 changes: 5 additions & 1 deletion tests/installation/agama.pm
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,10 @@ sub upload_agama_logs {
upload_logs('/tmp/agama-logs.tar.gz');
}

sub get_agama_install_console_tty {
return 7;
}

sub run {
my ($self) = @_;
assert_screen('agama-inst-welcome-product-list');
Expand Down Expand Up @@ -174,7 +178,7 @@ sub run {
}

assert_screen('agama-congratulations');
console('installation')->set_tty(get_x11_console_tty());
console('installation')->set_tty(get_agama_install_console_tty());
upload_agama_logs();
select_console('installation', await_console => 0);
ensure_unlocked_desktop();
Expand Down

0 comments on commit b545964

Please sign in to comment.