On Mon, May 13, 2024 at 01:37:11PM +0300, Panu Matilainen wrote:
I outlined the migration process last year in https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/... but failed to follow-up, so I'm glad to see this getting revisited.
I started looking into this, and I think we need to start at the bottom, i.e. in the setup package.
It currently provides /etc/{passwd,group} with a bunch of ids (23 groups) and /usr/lib/sysusers.d/20-setup-{users,groups} with a bunch of entries, but some of the groups listed in sysusers are not listed in the /etc files. IIUC, once we enable the rpm stuff, rpm will create /etc/{passwd,group} automatically, and the file provided by setup will be ignored. (It's specified as %config(noreplace).)
Should be drop the static /etc/{passwd,group} from setup?
Zbyszek