Commit eb55216 1 parent 9363b23 commit eb55216 Copy full SHA for eb55216
File tree 1 file changed +18
-0
lines changed
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -19,3 +19,21 @@ dnf clean all
19
19
rm /var/log/* /var/cache /var/lib/{dnf,rpm-state,rhsm} -rf
20
20
# And clean root's homedir
21
21
rm /var/roothome/.config -rf
22
+
23
+ # Fast track tmpfiles.d content from the base image, xref
24
+ # https://gitlab.com/fedora/bootc/base-images/-/merge_requests/92
25
+ if test ' !' -f /usr/lib/tmpfiles.d/bootc-base-rpmstate.conf; then
26
+ cat > /usr/lib/tmpfiles.d/bootc-base-rpmstate.conf << 'EOF '
27
+ # Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=771713
28
+ d /var/lib/rpm-state 0755 - - -
29
+ EOF
30
+ fi
31
+ if ! grep -q -r var/roothome/buildinfo /usr/lib/tmpfiles.d; then
32
+ cat > /usr/lib/tmpfiles.d/bootc-contentsets.conf << 'EOF '
33
+ # Workaround for https://github.com/konflux-ci/build-tasks-dockerfiles/pull/243
34
+ d /var/roothome/buildinfo 0755 - - -
35
+ d /var/roothome/buildinfo/content_manifests 0755 - - -
36
+ # Note we don't actually try to recreate the content; this just makes the linter ignore it
37
+ f /var/roothome/buildinfo/content_manifests/content-sets.json 0644 - - -
38
+ EOF
39
+ fi
You can’t perform that action at this time.
0 commit comments