Modifies serial console install following change in network enable default from v8 to v9

This commit is contained in:
Alan Marshall 2023-03-27 11:39:25 +01:00
parent 22b564ac03
commit c9ee065c8f
Signed by: alangm
GPG Key ID: 4DF85D1B967F51A6

View File

@ -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 {