Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

basic-fixes: Tweak /usr/lib/tmpfiles.d/provision.conf #371

Merged
merged 1 commit into from
Feb 29, 2024

Conversation

cgwalters
Copy link
Member

This ensures that systemd's creation of /root works instead of falling back to what we have in
/usr/lib/tmpfiles.d/rpm-ostree-0-integration.conf for d /var/roothome 0700 root root - which in turn ensures that both the credential values as well as bootc's injection of a tmpfiles.d snippet for root SSH key works.

containers/bootc#358

This ensures that systemd's creation of `/root` works instead
of falling back to what we have in
`/usr/lib/tmpfiles.d/rpm-ostree-0-integration.conf` for
`d /var/roothome 0700 root root -` which in turn ensures
that both the credential values as well as bootc's injection
of a tmpfiles.d snippet for root SSH key works.

containers/bootc#358
Signed-off-by: Colin Walters <walters@verbum.org>
Copy link
Contributor

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

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

LGTM. I kinda wish we could just drop another file into tmpfiles.d to override this instead of assuming the contents will always be present in provision.conf as provided by systemd, but it looks like systemd-tmpfiles doesn't necessarily handle duplicate entries for a given path well, and overrides is not really the intention. So this is a fair compromise.

@jeckersb
Copy link
Contributor

(Also, looks like I can't approve things on this repo)

@cgwalters
Copy link
Member Author

@lmilbaum hitting some pain here from not having people have approval rights

@cgwalters cgwalters merged commit 32feb42 into CentOS:main Feb 29, 2024
10 checks passed
mvo5 added a commit to mvo5/centos-bootc that referenced this pull request Mar 18, 2024
As a followup for CentOS#371
this PR tweaks `tmpfiles.d/rpm-ostree-0-integration.conf` too so
that there is only a single /var/roothome line for tmpfiles.d.

This should fix containers/bootc#358
mvo5 added a commit to mvo5/centos-bootc that referenced this pull request Mar 18, 2024
As a followup for CentOS#371
this PR tweaks `tmpfiles.d/rpm-ostree-0-integration.conf` too so
that there is only a single /var/roothome line for tmpfiles.d.

This should fix containers/bootc#358
mvo5 added a commit to mvo5/centos-bootc that referenced this pull request Mar 18, 2024
As a followup for CentOS#371
this PR tweaks `tmpfiles.d/rpm-ostree-0-integration.conf` too so
that there is only a single /var/roothome line for tmpfiles.d.

This should fix containers/bootc#358
mvo5 added a commit to mvo5/centos-bootc that referenced this pull request Mar 18, 2024
As a followup for CentOS#371
this PR tweaks `tmpfiles.d/provision.conf` so
that there is only a single /var/roothome line for tmpfiles.d

As it is both provision.conf and rpm-ostree-0-integration.conf
define the same dir.

This should fix containers/bootc#358
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants