buildroot-prep: fast-track fedora-repos-44-2

This pulls in the newer package that also has gpg keys in
/usr/ so our bootc base image BUILDER_IMG container can use
the gpgkeys in /usr/ too.
This commit is contained in:
Dusty Mabe 2026-08-24 14:13:34 -04:00
parent 7f4fdc7692
commit f1bc5c8660

View file

@ -6,3 +6,17 @@ set -euo pipefail
# are to fast-track fixes or work around bugs.
# Note that any dowloaded packages here needs to be included in lockfiles (the main
# or overrides one).
# Get the newer fedora-repos with gpgkeys in /usr/
# https://github.com/coreos/fedora-coreos-tracker/issues/2172
if [ "$(rpm -q fedora-repos)" == 'fedora-repos-44-1.noarch' ]; then
# cachi2 is the repo Konflux injects when hermetic build is enabled
# and if it's there we can just update from it.
if [ -f "/etc/yum.repos.d/cachi2.repo" ]; then
sudo dnf update -y fedora-{repos,repos-archive,gpg-keys}
else
# else we need to pull from koji for now
sudo dnf update -y --disablerepo=* \
https://kojipkgs.fedoraproject.org//packages/fedora-repos/44/2/noarch/fedora-{repos,repos-archive,gpg-keys}-44-2.noarch.rpm
fi
fi