Skip to content

Commit

Permalink
RPM: No blanket conditionals for configs on COPR envs
Browse files Browse the repository at this point in the history
Given we ship podman-next copr packages on quite a few envs now, config
file handling should follow distro policy as much as possible.

Resolves: #2123

Signed-off-by: Lokesh Mandvekar <[email protected]>
  • Loading branch information
lsm5 committed Aug 14, 2024
1 parent 619c68d commit 2e812ea
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions rpm/update-config-files.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,6 @@ grep -q \"socket\", pkg/seccomp/seccomp.json || sed -i '/\"socketcall\",/i \

FEDORA=$(rpm --eval '%{?fedora}')
RHEL=$(rpm --eval '%{?rhel}')
COPR=$(rpm --eval '%{?copr_username}')

# Set search registries
if [[ -n "$FEDORA" ]]; then
Expand All @@ -55,9 +54,9 @@ if [[ -n "$FEDORA" ]] || [[ "$RHEL" -ge 10 ]]; then
sed -i -e '/^additionalimagestores\ =\ \[/a "\/usr\/lib\/containers\/storage",' storage.conf
fi

# Set these on Fedora Rawhide (41+), RHEL 10+, and on all COPR builds
# Set these on Fedora Rawhide (41+) and RHEL 10+
# regardless of distro
if [[ -n "$COPR" ]] || [[ "$FEDORA" -gt 40 ]] || [[ "$RHEL" -ge 10 ]]; then
if [[ "$FEDORA" -gt 40 ]] || [[ "$RHEL" -ge 10 ]]; then
ensure pkg/config/containers.conf compression_format \"zstd:chunked\"
ensure storage.conf pull_options \{enable_partial_images\ =\ \"true\",\ use_hard_links\ =\ \"false\",\ ostree_repos=\"\",\ convert_images\ =\ \"false\"\}
# Leave composefs disabled
Expand Down

0 comments on commit 2e812ea

Please sign in to comment.