-
Notifications
You must be signed in to change notification settings - Fork 159
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
overlay/sysusers: add fragments for all FCOS system groups #1836
overlay/sysusers: add fragments for all FCOS system groups #1836
Conversation
Over time we do expect to be able to drop some of these sysusers.d fragments, as more packages will start shipping their own configuration files.
|
Shouldn't we also remove these things from our static |
@cgwalters absolutely yes, likely coupled with a |
Just for experimenting I did try emptying out this file in #1839, and indeed there is some entanglement with rpm-ostree trying to perform group lookups at compose/install time. |
Yeah; and really this generalizes to "looking up users/groups in containers that don't run systemd-sysusers by default" - and we'll want a common story for that. I think the answer is probably "run systemd-sysusers" right? (Remembering that in doing so, we want to discard any such changes to Alternatively of course, we could invent |
I realized this content isn't actually used by rpm-ostree when composing, because file overlays are only applied after all |
Specifically, I'm seeing some confusion on the side of
And then complains about
|
It might be confused by the fact that we are requesting a group only (and not a user + group) for an existing user+group entry. Likely a bug in systemd-sysusers. |
In a sense, If you directly request a |
Tackling users has a larger impedance mismatch (e.g. on GECOS labels, where not even I think |
This translates all Fedora CoreOS system groups (i.e. those coming from group manifest) into equivalent sysusers.d fragments. We currently ship four kinds of system groups: * basic groups coming from the `/etc/group` file in the `setup` package (10-groups-basic.conf) * the legacy GID for the `nobody` group (00-group-nobody.conf) * extra groups with static GIDs that adhere to the Fedora allocation table (10-groups-static-extra.conf) * extra groups with static GIDs that are specific to CoreOS (00-groups-coreos-static.conf) These sysusers.d fragments are meant as a transitory measure to help migrate the existing group entries from the current nss-altfiles setup to a plain sysusers.d world.
ac7ab2e
to
aee5f45
Compare
I made good progress on all the other fronts (including packaging tweaks and rpm-ostree/systemd bugfixes), and gluing everything back together got me to a mostly-working state. We can't yet start removing user/group entries from FCOS manifests. That will need to wait till the very end, when rpm-ostree will have full support for sysusers-only mode. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks sane to me but let's have someone else cross review.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks sane to me but I wonder if it'd be useful to have a tracker issue (maybe we can re-use coreos/fedora-coreos-tracker#155, or it might be less confusing to make a separate one) with a checklist of how we're going to transition to sysusers in FCOS. That would also make it easier for folks to participate and better review things along the way. (And to replicate it in other rpm-ostree-based variants.)
We currently ship four kinds of system groups:
The descriptions there are useful; might be good in a follow-up to include them as comments in the respective drop-in files.
I'll be honest here: I think we are still quite far from that, and I'm personally not sure how to do the actual transition. So I don't have a checklist to follow along right now. For the moment I'm just working to make sure all the configuration entries are consistent/aligned, and squashing the bugs I hit while kicking the tires. |
`setup` package As `setup` shipped its own sysusers.d entries, see https://src.fedoraproject.org/rpms/setup/c/ff8169d809a5de20864deb6bb41c4b4104a3fb61?branch=f38 and https://src.fedoraproject.org/rpms/setup/c/9174b59bde57a991c284c10dac749d061f93aaad?branch=f38, we should remove the duplicated entries in `10-groups-basic.conf`. Xerf to coreos#1836
`setup` package As `setup` shipped its own sysusers.d entries, see https://src.fedoraproject.org/rpms/setup/c/ff8169d809a5de20864deb6bb41c4b4104a3fb61?branch=f38 and https://src.fedoraproject.org/rpms/setup/c/9174b59bde57a991c284c10dac749d061f93aaad?branch=f38, we should remove the duplicated entries in `10-groups-basic.conf`. Xerf to #1836
`setup` package As `setup` shipped its own sysusers.d entries, see https://src.fedoraproject.org/rpms/setup/c/ff8169d809a5de20864deb6bb41c4b4104a3fb61?branch=f38 and https://src.fedoraproject.org/rpms/setup/c/9174b59bde57a991c284c10dac749d061f93aaad?branch=f38, we should remove the duplicated entries in `10-groups-basic.conf`. Xerf to coreos#1836
`setup` package As `setup` shipped its own sysusers.d entries, see https://src.fedoraproject.org/rpms/setup/c/ff8169d809a5de20864deb6bb41c4b4104a3fb61?branch=f38 and https://src.fedoraproject.org/rpms/setup/c/9174b59bde57a991c284c10dac749d061f93aaad?branch=f38, we should remove the duplicated entries in `10-groups-basic.conf`. Xerf to coreos#1836
This translates all Fedora CoreOS system groups (i.e. those coming
from group manifest) into equivalent sysusers.d fragments.
We currently ship four kinds of system groups:
/etc/group
file in thesetup
package (
10-groups-basic.conf
)nobody
group (00-group-nobody.conf
)allocation table (
10-groups-static-extra.conf
)(
00-groups-coreos-static.conf
)These sysusers.d fragments are meant as a transitory measure to
help migrate the existing group entries from the current nss-altfiles
setup to a plain sysusers.d world.