Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
guysoft opened this issue Jul 20, 2024 · 2 comments
Closed

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

guysoft opened this issue Jul 20, 2024 · 2 comments

Comments

@guysoft
Copy link

guysoft commented Jul 20, 2024

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
@guysoft
Copy link
Author

guysoft commented Jul 20, 2024

Ok I see:

    if [ -f /var/lib/userconf-pi/autologin ] || [ "$IMG_VER" == "2022-04-04" ]; then
        SUDO_USER="$1" raspi-config nonint do_boot_behaviour B4
    else
        SUDO_USER="$1" raspi-config nonint do_boot_behaviour B3
    fi

I guess I can touch that file

@guysoft guysoft closed this as completed Jul 20, 2024
@guysoft
Copy link
Author

guysoft commented Jul 21, 2024

Might be related:
#614

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

No branches or pull requests

1 participant