Skip to content

Add users to initramfs to silence errors#4287

Open
kressb-gitlab wants to merge 1 commit intoublue-os:testingfrom
kressb-gitlab:initramfs-users
Open

Add users to initramfs to silence errors#4287
kressb-gitlab wants to merge 1 commit intoublue-os:testingfrom
kressb-gitlab:initramfs-users

Conversation

@kressb-gitlab
Copy link
Copy Markdown
Contributor

Every boot Bazzite has a lot of alarming (to some users) errors in the journal from missing users and groups in initramfs. This is because Bazzite reads users and groups from altfiles, and those files aren't in initramfs.

So add them. Silences the errors from initramfs.

Copy link
Copy Markdown
Member

@tulilirockz tulilirockz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Imho its valuable to let upstream deal with these kinds of issues, if this happens on bazzite it most likely also happen on Silverblue/Kinoite, and if thats the case then this logic should be there instead.

@kressb-gitlab
Copy link
Copy Markdown
Contributor Author

No, it doesn't happen upstream. This is a result of how we do our users with NSS altfiles.

Kinoite and Silverblue do not do this.

@m2Giles
Copy link
Copy Markdown
Member

m2Giles commented Mar 6, 2026

No, it doesn't happen upstream. This is a result of how we do our users with NSS altfiles.

Kinoite and Silverblue do not do this.

What is the difference between our usage and upstreams? My understanding is that silver blue has an empty /etc/group and a more or less empty /etc/passwd by default. Due to rechunk, we have everything in altfiles which should effectively be the default.

@kressb-gitlab
Copy link
Copy Markdown
Contributor Author

Oh, you're right this is a kinoite/silverblue thing. I thought the altfiles thing was only Bazzite/bluefin/aurora.
I wonder if they'd want this...

bogdan-d added a commit to bogdan-d/serpentine that referenced this pull request Mar 7, 2026
Ensure nsswitch.conf, passwd, and group are bundled in initramfs for consistent user and group handling - to silence errors about missing users and groups during early boot.
ublue-os/bazzite#4287
@KyleGospo KyleGospo force-pushed the testing branch 5 times, most recently from cf51257 to be6315c Compare March 13, 2026 05:52
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

Successfully merging this pull request may close these issues.

3 participants