-
Notifications
You must be signed in to change notification settings - Fork 150
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
Add support for new Raspberry Pi OS .xz. userless image #163
Comments
Reading through the updates here, it looks like we can set up a default user (although not really recommended) by putting a file called
Otherwise, I think the user will be prompted with the wizard at first launch, but I need to test it though. |
I think that for now if the default user module is enabled, it should remove the creation of the new user. |
Also I think ill pull the xz image changes tomorrow so at least images would get built |
Hello Guy, after a littlebit of messing around with custoPiZer, I faced the same in my tests. Regards |
Thanks a lot for the snippet @KwadFan , tested and it works. |
Something with the user genration is creaing: |
Hello @guysoft , |
@ghollingworth Could you perhaps shed any light on why when we use When we boot I tried running grep for the whole rootfs for Thanks! |
So, @guysoft , Feel free to abuse it :) Regards |
@KwadFan Decent workaround, however, it does strengthen the issue that we don't know where this is coming from. tl;dr for newcomers - autologin is loaded when the a default pi-user is created, its undocumented and happends when using the userconf system (now the default in Rpi OS). Also we have no idea what script is doing it even after grepping the entire system. Also cc @foosel if you have any insight from anyone. |
Thanks :) But, yes, eleminating the root cause is the better way. Its more intended to be a temporary patch on that hole... |
Update: It happens here: https://github.com/RPi-Distro/userconf-pi/blob/master/cancel-rename#L28 |
Ok, that makes no sense to me why they choose option B2 instead B1 if rename is canceled ( what I think for what reason this script is intended ). Are there plans to revert/patch that? Quick Edit: Why not disabling the service before first boot? |
@KwadFan Actually rpi also see it as an issue that needs to be fixed. However they their plan is to fix it next release and not right away, and this is a security issue in my option. |
@guysoft So, yes.... even RPI Devs aren't unfailable xD. Yes, you are right this is a huuuge Security Risk. What also comes to my mind in the end, if you dont remove the tty1 as serial console, like I in mainsailOS do, you could do worse things over serial also... What is our option? Waiting to let them fix it or a quick and dirty workaround? |
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.
rightly pointed out by @KwadFan , the patch should
Will find time to write that or PRs are welcome for this |
@guysoft So, if PR's are welcome, here we go: Prove of concept see: Will remove those branches after merge :) So, if you visit in future, it works! ;) |
feat: detect os version and upgrade userconf-pi first (#163)
New change was commited 8 days ago: New image with that change and that brakes ff73605 patch was released two days ago |
Hi, My config file looks like this: export DIST_NAME=MyDist
export DIST_VERSION=0.0.1
export MODULES="base(disable-overscan,update,kiosk,permissions)"
export BASE_USER=glue
export BASE_USER_PASSWORD="redacted"
export BASE_ADD_USER=yes
export BASE_SSH_ENABLE=yes
export BASE_OVERRIDE_HOSTNAME=myDistHost
export BASE_IMAGE_ENLARGEROOT=1000
export BASE_ARCH=arm64 Any idea? |
This fully works now, closing |
@hrueger Why do you need to add that? |
I've been struggeling with usb devices and found that adding the user to |
That would make sense because |
It's me again ;-) |
@hrueger |
Thanks for the fast response. I don't completely understand. My config looks like this: |
@hrueger To enable auto login you will need to stop this line from running: https://github.com/guysoft/CustomPiOS/blob/devel/src/modules/base/start_chroot_script#L65 ATM there is no config switch for that, it can be added. Actually saw that as a security vulnerability, and it was treated as a bug by Rpi here: RPi-Distro/userconf-pi#2 |
Thanks for the hints. Yes, I wanted to not be promted and auto-login. |
Hey,
The new Rpi image has no pi user and uses a .xz compression format.
I could not get to fix it because I was on holiday in Egypt till yesterday. And today I am starting a new job. So it might take a small delay untill I can fix it. Probably should find time by the end if the week.
If anyone has any input please share it here.
The text was updated successfully, but these errors were encountered: