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

View File

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