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

Question about user password #809

Open
D1987 opened this issue Nov 20, 2024 · 3 comments
Open

Question about user password #809

D1987 opened this issue Nov 20, 2024 · 3 comments

Comments

@D1987
Copy link

D1987 commented Nov 20, 2024

I build custom_stage via gitlab pipeline. In my a config file I pass user and password values via jinja2

FIRST_USER_NAME="{{ PI_USER }}"
FIRST_USER_PASS="{{ PI_PASSWORD }}"

From a cat command I see values applied. Then I write a final image via Raspberry Pi Imager and when I raspberry device boot but my password wrong. It took my previous test password - pi.
How to manage password?

@D1987 D1987 closed this as completed Nov 20, 2024
@D1987 D1987 reopened this Nov 20, 2024
@XECDesign
Copy link
Member

Are you sure your SD card hasn't gone into read-only mode?

Some SD cards fail in a way that makes them behave as if they're writing data, but if you read the data back (with cleared caches), then you get back old data. That makes the card appear as if everything is working fine, but changes don't survive reboot or remount.

Are you applying any customisation options using Imager?

@D1987
Copy link
Author

D1987 commented Nov 22, 2024

I use default setting when write image I mean the settings from pi-gen build not Raspberry Imager.
I'll check your case about read-only mode.
Thanks.

@XECDesign
Copy link
Member

I mean the settings from pi-gen build not Raspberry Imager.

I understand that, but I mean in addition to the pi-gen customisations, what are you doing with rpi-imager? It asks you whether you'd like to apply customisations and you need to answer yes or no, there's no default. If you accidentally clicked yes, it may be writing setting you had saved earlier. So I just wanted to be sure that that didn't happen.

I know it's unlikely, but the behaviour you're seeing is a bit strange - there is no where else for it to be getting the password 'raspberry' from.

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

2 participants