aaa_setup: switch back to console if loginctl dumps us at GDM
All checks were successful
CI via Tox and perl / tox (pull_request) Successful in 1m27s
CI via Tox and perl / perl (pull_request) Successful in 3m33s
CI via Tox and perl / checkwiki (pull_request) Successful in 32s

Signed-off-by: Adam Williamson <awilliam@redhat.com>
This commit is contained in:
Adam Williamson 2026-04-21 16:37:24 -07:00
commit 80d7746d8a

View file

@ -16,6 +16,8 @@ sub run {
# Remove the user clear the system and force the gnome-initial-setup
# to start on new boot.
assert_script_run("loginctl kill-user $username");
# that might switch us back to GDM, switch away if so
$self->root_console(tty => 3) if (check_screen 'graphical_login', timeout => 30);
assert_script_run("userdel -r $username");
# Reboot the system to trigger GNOME initial setup