Skip to content

Fix GUI autologin without tty autologin#274

Open
guysoft wants to merge 1 commit into
develfrom
bugfix/gui-autologin
Open

Fix GUI autologin without tty autologin#274
guysoft wants to merge 1 commit into
develfrom
bugfix/gui-autologin

Conversation

@guysoft

@guysoft guysoft commented Jul 2, 2026

Copy link
Copy Markdown
Owner

Summary

  • Use raspi-config nonint do_autologin 2 during the GUI module first-boot LightDM fixup so desktop autologin remains enabled without leaving tty1 autologin active.
  • Preserve CustomPiOS guisession settings after the raspi-config call and add a fallback for older images without do_autologin.
  • Add a shared post-SSH E2E hook point so distros can assert boot state before post-boot setup mutates the running image.

Test plan

  • bash -n src/modules/gui/filesystem/opt/scripts/update_lightdm_conf src/distro_testing/scripts/entrypoint.sh
  • git 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.sh
  • Built FullPageOS arm64 with Docker using the local CustomPiOS changes.
  • Ran FullPageOS E2E against the built image: TEST_RESULT=0, exit-code=0.
  • E2E artifact e2e_results/local-autologin-clean-20260623-153729/autologin-status.txt showed update_lightdm_conf.service active, lightdm.service active, autologin-user=pi, autologin-session=guisession, and no tty1 autologin drop-ins.

Based on: RPi-Distro/userconf-pi#9 (comment)

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant