From c9ee065c8f81a687496c8f99ad983d983de5a8c6 Mon Sep 17 00:00:00 2001 From: AlanMarshall Date: Mon, 27 Mar 2023 11:39:25 +0100 Subject: [PATCH] Modifies serial console install following change in network enable default from v8 to v9 --- tests/_boot_to_anaconda.pm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/_boot_to_anaconda.pm b/tests/_boot_to_anaconda.pm index 297d6f96..70f19efa 100644 --- a/tests/_boot_to_anaconda.pm +++ b/tests/_boot_to_anaconda.pm @@ -99,8 +99,11 @@ sub run { # we direct the installer to virtio-console1, and use # virtio-console as a root console select_console('virtio-console1'); - unless (wait_serial "Use text mode", timeout => 120) { die "Anaconda has not started."; } - type_string "2\n"; + if (get_var("DISTRI") eq "rocky" && (get_version_major() > 8)) { + unless (wait_serial "Use text mode", timeout => 120) { die "Anaconda has not started."; } + type_string "2\n"; + } + # see comment below unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; } } else {