Now that the dust from 4.20 landing has settled a bit...
On 6/6/24 23:25, Zbigniew Jędrzejewski-Szmek wrote:
Hi,
I think all the issues wrt. sysusers in systemd and setup have been resolved.
On Tue, May 14, 2024 at 11:34:51AM +0000, Zbigniew Jędrzejewski-Szmek wrote:
On Tue, May 14, 2024 at 02:01:09PM +0300, Panu Matilainen wrote:
On 5/14/24 13:39, Zbigniew Jędrzejewski-Szmek wrote:
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).)
I was confused here. setup generates its two sysusers files from the passwd/groups file that it distributes, so they will always match.
We added the missing group defintions that systemd-udev relies on to default groups file distributed by setup (in setup-2.15.0-3). The next build of systemd (256~rc4-1) will drop its sysusers.d/basic.conf file.
Please carry on with the enablement of rpm sysusers handling ;)
Excellent :) With the duplicates gone from systemd basic.conf gone, a logical next step would be turning on hard dependencies for users and groups before the F41 mass rebuild (by dropping rpm-4.19.91-weak-user-group.patch from Fedora rpm).
All the necessary user/group provides should already be in place since F40 mass rebuild, and it shouldn't matter which mechanism actually creates the users, so it's not committing to any changes in user/group handling as such, this is just an extra packaging hygiene step in the process.
I'll be out for the entire July, but Florian and Michal will be around.
- Panu -