Comments (7)
I would imagine that the user creation process modifies that file to change the userid - why don't you try it?
from raspberrypi-sys-mods.
It's working as intended. General questions are better asked on the forum.
from raspberrypi-sys-mods.
I would imagine that the user creation process modifies that file to change the userid - why don't you try it?
Please don't assume I didn't try it - you don't know me.
It's working as intended. General questions are better asked on the forum.
It works partially. I do have a private fork of the pi-gen. In the past, setting the FIRST_USER_NAME
and FIRST_USER_PASS
with the config
file was the way to go (what I did). The default user pi
was recently removed, and the first-user-process changed drastically. Unfortunately, when something is set for FIRST_USER_NAME
the replacement within the 010_pi-nopasswd
doesn't work. That is why it was not working for me as expected.
@XECDesign What I did now, is a sub step within the staging steps to create the userconf in /boot. Wouldn't be that a good replacement to allow customized pi-gen repositories to still use FIRST_USER_NAME/PASS
?
from raspberrypi-sys-mods.
Please don't assume I didn't try it - you don't know me.
It's because we don't know you that we can't assume that you did.
Unfortunately, when something is set for
FIRST_USER_NAME
the replacement within the010_pi-nopasswd
doesn't work.
That sounds like a legitimate issue with pi-gen
that needs to be fixed, but it would've been there before the user rename scripts were added.
@XECDesign What I did now, is a sub step within the staging steps to create the userconf in /boot. Wouldn't be that a good replacement to allow customized pi-gen repositories to still use
FIRST_USER_NAME/PASS
?
I think so, but some people weren't happy with that suggestion on the pi-gen issue tracker.
from raspberrypi-sys-mods.
@XECDesign Thanks for your response much appreciated 👍
from raspberrypi-sys-mods.
@CodeTherapist Sorry to bump this, but can you elaborate on your solution?
Do you create a userconf that respect what was set in FIRST_USER_NAME/PASS
?
@XECDesign, as was explained in the issue you linked, the goal is to have a system already in place to respect FIRST_USER_NAME/PASS
when they are set, otherwise, those options should just be removed from the config file and from the documentation.
If including something at the staging step that respect FIRST_USER_NAME/PASS
works, then perfect.
I would be nice to avoid forcing people to maintain a lot of additional moving parts just to keep the previous behavior. As we established already, this change breaks backward compatibility in a lot of ways (and to be clear, I understand the security point of view).
from raspberrypi-sys-mods.
@gromain Yes, I did a additional step to put a userconfig into the boot with the info from FIRST_USER_NAME/PASS
.
Unfortunately it seems still an issue - even with the new option DISABLE_FIRST_BOOT_USER_RENAME=1
.
from raspberrypi-sys-mods.
Related Issues (20)
- Dedicated LTS Raspberry Pi OS image for Compute Modules. HOT 3
- Raspberry Pi OS Image is missing Microsoft Repository HOT 1
- [Bullseye] postinst script contains every auto-added block four times HOT 3
- Post-installation script subprocess returned error exit status 126 HOT 5
- New postinst flush code fails if vfat partition not found HOT 3
- [bullseye] FIRSTBOOT exits prematurely on NOOBS/PINN sd card HOT 4
- `init_config` python module named 'toml' is missing in Raspberry Pi OS lite 64bit HOT 2
- missing license HOT 2
- Introduce the ability to limit rootfs size at first boot HOT 16
- firstboot script hangs if image contains already kernel 6.1
- "imager_custom set_wlan" generates script but does not escape special characters properly HOT 1
- Abstract boot partition path HOT 5
- Exit status of grep HOT 2
- Firstboot fix_partuuid issues
- How to update wifi after first boot? HOT 13
- Serial port symlinks broken in bookworm. HOT 6
- imager_set_custom using uuid which is not always available HOT 1
- Initrd rootfs resize fails on RPi5 HOT 12
- Recent removal of /boot/cmdline.txt link to /boot/firmware/cmdline.txt HOT 9
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from raspberrypi-sys-mods.