Skip to content

Firstrun.sh overrides autologin of gui because of cancel-rename. #780

@guysoft

Description

@guysoft

Hey, I have a distribution that uses autologin to a special gui session as default (fullapgeos).
I can see that when flashed with a custom user using rpi-imager, firstrun.sh runs cancel-rename, which then runs:

/usr/bin/raspi-config nonint do_boot_behaviour B3

Is there a way that user changing the default user wont break the auto-login? The user does not select that in any place that I can see in the imager.

This is the pstree that help me catch this. (i stuck code in raspi-config to figure out what is triggering it on first boot):

systemd,1
  `-firstrun.sh,633 /boot/firmware/firstrun.sh
      `-userconf,673 /usr/lib/userconf-pi/userconf boop $5$4SfZSLq/Pi$NVNp/gkGMNZSlXf5kU8HHKkDsyEBBeDM2ZUBhqTKcC3
          `-cancel-rename,710 /usr/bin/cancel-rename boop
              `-raspi-config,731 /usr/bin/raspi-config nonint do_boot_behaviour B3
                  `-pstree,758 -s -a -p 710

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions