From 1d6491d14301d532debe07280ffe95687ec4da20 Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Mon, 1 Oct 2018 14:24:40 -0700 Subject: [PATCH] Workaround Workstation live on tty2 not tty1 (RHBZ #1635033) In recent Rawhide, it seems the Workstation live session runs on tty2 not tty1 for some reason. This throws off anacondatest root_console, which assumes there'll be a vt on tty2. Handle it by using tty3 instead if we're in a GNOME live environment. Signed-off-by: Adam Williamson --- lib/anacondatest.pm | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/anacondatest.pm b/lib/anacondatest.pm index a20193e7..3a2c2dc1 100644 --- a/lib/anacondatest.pm +++ b/lib/anacondatest.pm @@ -62,7 +62,13 @@ sub root_console { my $self = shift; my %args = ( @_); - send_key "ctrl-alt-f2"; + # Handle https://bugzilla.redhat.com/show_bug.cgi?id=1635033 + if (get_var("LIVE") && get_var("DESKTOP") eq "gnome") { + send_key "ctrl-alt-f3"; + } + else { + send_key "ctrl-alt-f2"; + } console_login(user=>"root"); }