Skip to content

Commit

Permalink
packages-openshift: add compat tmpfiles.d dropin
Browse files Browse the repository at this point in the history
We can't rely on rpm-ostree's var-to-tmpfiles.d conversion anymore
for layered packages. Let's not worry about it for new packages in the
future, but at least for the existing ones, let's add a compat dropin
that adds back what we lost.

Though I could also imagine exposing a e.g.
`rpm-ostree generate-tmpfiles.d` that we could use here, or just lift
that code into a separate utility/SDK since it's globally useful.
  • Loading branch information
jlebon committed Nov 29, 2024
1 parent 6df4a9b commit e63f9b8
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions packages-openshift.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -142,4 +142,16 @@ postprocess:
rm -f /etc/selinux/targeted/*.LOCK
# cache, logs, etc...
rm -rf /var && mkdir /var
# All the entries here should instead be part of their respective
# packages. But we carry them here for now to maintain compatibility.
cat > /usr/lib/tmpfiles.d/openshift.conf << EOF
L /opt/cni - - - - ../../usr/lib/opt/cni
d /var/lib/cni 0755 root root - -
d /var/lib/cni/bin 0755 root root - -
d /var/lib/containers 0755 root root - -
d /var/lib/openvswitch 0755 root root - -
d /var/lib/openvswitch/pki 0755 root root - -
d /var/log/openvswitch 0750 openvswitch hugetlbfs - -
d /var/lib/unbound 0755 unbound unbound - -
EOF
fi

0 comments on commit e63f9b8

Please sign in to comment.