anaconda_help: change the check for root password creation

Seems silly to wait 120 seconds when we know what the criteria
are. GNOME installs, can't do this; others, we have to.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2021-05-31 15:22:43 -07:00
parent 3364732110
commit 45381f33ff
1 changed files with 4 additions and 4 deletions

View File

@ -47,10 +47,10 @@ sub run {
}
# Now, we will start the installation.
# As we have not created any root password, or any user, on non-live systems
# the Begin Installation button may be greyed out. If this is the situation,
# we will create the root password to override this.
unless (check_screen "anaconda_main_hub_begin_installation", 120) {
# on GNOME installs (Workstation Live and Silverblue) we don't
# need to set a root password or create a user; on other flavors
# we must
unless (get_var("DESKTOP") eq "gnome" ) {
assert_and_click "anaconda_main_hub_root_password";
type_safely "weakrootpassword";
send_key "tab";