File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,9 +11,19 @@ install_cleanup_trap
1111sed -i ' s/#user-session=.*/user-session=guisession/g' /etc/lightdm/lightdm.conf
1212# This is now down as a systemd service to handle username conf on boot
1313sed -i ' s/#autologin-user=.*/autologin-user=UID_1000_PLACEHOLDER/g' /etc/lightdm/lightdm.conf
14+
1415systemctl enable update_lightdm_conf.service
1516
17+ # cancel-rename overrides auto login see https://github.com/RPi-Distro/pi-gen/issues/780
18+ if [ " ${BASE_DISTRO} " == " raspbian" ] || [ " ${BASE_DISTRO} " == " raspios64" ] || [ " ${BASE_DISTRO} " == " raspios" ]; then
19+ mkdir -p /var/lib/userconf-pi
20+ touch /var/lib/userconf-pi/autologin
21+ fi
22+
1623# set the gui to run the main script of the GUI session
1724sed -i " s@GUI_SESSION_PLACEHOLDEFR@${GUI_STARTUP_SCRIPT} @g" /opt/custompios/scripts/start_gui
1825
26+ # Set the boot target to use a gui
27+ systemctl set-default graphical.target
28+
1929rm -r /usr/sbin/policy-rc.d || true
You can’t perform that action at this time.
0 commit comments