do not expect VNC vs Text Mode menu during text install

This commit is contained in:
Trevor Cooper 2021-10-27 09:00:46 -07:00
parent dc8f3b88f0
commit 697c9d3ef6

View File

@ -104,10 +104,19 @@ sub run {
unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; } unless (wait_serial "Installation") { die "Text version of Anaconda has not started."; }
} }
else { else {
assert_screen "anaconda_use_text_mode", 300; if (get_var("DISTRI") eq "rocky") {
type_string "2\n"; # Rocky doesn't have network enabled at boot so we are not prompted
# wait for text version of Anaconda main hub # for VNC...
assert_screen "anaconda_main_hub_text", 300; # wait for text version of Anaconda main hub
assert_screen "anaconda_main_hub_text", 300;
}
else {
# Fedora has a use text mode menu here
assert_screen "anaconda_use_text_mode", 300;
type_string "2\n";
# wait for text version of Anaconda main hub
assert_screen "anaconda_main_hub_text", 300;
}
} }
} }
else { else {