Fix GUI autologin without tty autologin#274
Open
guysoft wants to merge 1 commit into
Open
Conversation
Use Raspberry Pi's GUI-only autologin path after first-boot user setup so GUI images do not leave tty1 autologin enabled, and add a pre-post-boot E2E hook point for distros to assert boot state before test setup mutates it. Document the raspi-config do_autologin bitmask so the GUI-only value is clear.
ab84ede to
c9f9ca7
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
raspi-config nonint do_autologin 2during the GUI module first-boot LightDM fixup so desktop autologin remains enabled without leaving tty1 autologin active.guisessionsettings after the raspi-config call and add a fallback for older images withoutdo_autologin.Test plan
bash -n src/modules/gui/filesystem/opt/scripts/update_lightdm_conf src/distro_testing/scripts/entrypoint.shgit diff --check -- src/modules/gui/filesystem/opt/scripts/update_lightdm_conf src/modules/gui/filesystem/root_init/etc/systemd/system/update_lightdm_conf.service src/distro_testing/scripts/entrypoint.shTEST_RESULT=0,exit-code=0.e2e_results/local-autologin-clean-20260623-153729/autologin-status.txtshowedupdate_lightdm_conf.serviceactive,lightdm.serviceactive,autologin-user=pi,autologin-session=guisession, and no tty1 autologin drop-ins.Based on: RPi-Distro/userconf-pi#9 (comment)