Skip to content
New issue

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

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

Already on GitHub? # to your account

/boot/userconf changes boot #2

Closed
LazeMSS opened this issue Apr 25, 2022 · 2 comments
Closed

/boot/userconf changes boot #2

LazeMSS opened this issue Apr 25, 2022 · 2 comments

Comments

@LazeMSS
Copy link

LazeMSS commented Apr 25, 2022

I tried many times now to make a headless RPI boot and setting the user and password using the new /boot/userconf.

And it works great except for one thing - it always set the login default to automatic text login.
I don't think this is the expected behavior.

In my "image" i remove /etc/systemd/system/getty@tty1.service.d/autologin.conf and run systemctl --quiet set-default multi-user.target
, but the problem seems to be that when the userconf-service is handling the userconf - the flow seems to be like this:

Userconf-service get to this line (which is rename but also set the new password):

Which then will hit this:

Which again will hit this:

Thereby calling raspi-config to set it to B2 Console Autologin

Im not sure why renaming the username or/and setting the password should cause any changes to the login behavior but I might be missing something

@XECDesign
Copy link
Member

I think the way to resolve it is for us to save the boot behaviour to a file and then restore it.

I'll see what I can do for the next release. Thanks

@LazeMSS
Copy link
Author

LazeMSS commented May 3, 2022

Thanks - I have basically removed in my local images. I can't really figure out why the userconf needs to run the cancel-rename always and reset the login option.

guysoft added a commit to guysoft/userconf-pi that referenced this issue Jun 15, 2022
As mentioned here this was planned soon: RPi-Distro/pi-gen#614 (comment)
And AFAIK it needs to be B1: guysoft/CustomPiOS#163 (comment)

I though I might make a PR to make this easier to merge in.
Also I am planning to make a patch out of it to have inside CustomPiOS untill this is fixed.
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants