mirror of
https://gitlab.com/fedora/bootc/base-images.git
synced 2026-08-29 12:32:40 +00:00
See https://github.com/konflux-ci/build-tasks-dockerfiles/pull/243 Unfortunately...some 3rd party container scanners just hard require these JSON files to exist at the target path. It's going to be a painful long road to get them fixed to rely on something else. Add `tmpfiles.d` entries to silence `bootc container lint` for this. It will have the effect of course of creating these files if they don't exist on boot, so in the future we'll probably aim to add an "ignore" entry for this into the bootc container lint. Also adds a rootfs test case verifying the tmpfiles config is present in built images. Assisted-by: OpenCode (Claude Sonnet 4.6) Signed-off-by: Colin Walters <walters@verbum.org>
18 lines
832 B
YAML
18 lines
832 B
YAML
postprocess:
|
|
- |
|
|
#!/bin/bash
|
|
set -xeuo pipefail
|
|
cat >/usr/lib/tmpfiles.d/bootc-base-rpmstate.conf <<'EOF'
|
|
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=771713
|
|
d /var/lib/rpm-state 0755 - - -
|
|
EOF
|
|
cat > /usr/lib/tmpfiles.d/konflux-buildinfo-contentsets.conf <<'EOF'
|
|
# Workaround for https://github.com/konflux-ci/build-tasks-dockerfiles/pull/243
|
|
d /var/roothome/buildinfo 0755 - - -
|
|
d /var/roothome/buildinfo/content_manifests 0755 - - -
|
|
# Note we don't actually try to recreate the content; this just makes the linter ignore it
|
|
f /var/roothome/buildinfo/content_manifests/content-sets.json 0644 - - -
|
|
f /var/roothome/buildinfo/labels.json 0644 - - -
|
|
EOF
|
|
# Workaround for https://issues.redhat.com/browse/RHEL-106203
|
|
rm -f /usr/lib/tmpfiles.d/home.conf
|