buildroot-prep: fast-track rpm-ostree-2026.3-2.fc45

In the F45 bootc builder container the bad rpm-ostree had already
leaked in [1] so let's fast-track rpm-ostree-2026.3-2.fc45 to fix
the problem.

[1] https://github.com/coreos/fedora-coreos-tracker/issues/2226#issuecomment-5805504703
This commit is contained in:
Dusty Mabe 2026-09-23 21:08:27 -04:00
parent 801446cafd
commit 66d809dcb6

View file

@ -6,3 +6,23 @@ set -euo pipefail
# are to fast-track fixes or work around bugs.
# Note that any downloaded packages here needs to be included in lockfiles (the main
# or overrides one).
# Get the newer rpm-ostree in `next*` streams. Fedora 45 is the only
# place where the 2026.3-1 made it into the bootc builder container [1].
# [1] https://github.com/coreos/fedora-coreos-tracker/issues/2226#issuecomment-5805504703
if [ "$(rpm -q --qf '%{NVR}' rpm-ostree)" == 'rpm-ostree-2026.3-1.fc45' ]; then
# hermeto.repo 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/hermeto.repo" ]; then
sudo dnf update -y rpm-ostree rpm-ostree-libs
else
# else we need to pull from koji for now
sudo dnf upgrade -y --disablerepo=* \
https://kojipkgs.fedoraproject.org//packages/rpm-ostree/2026.3/2.fc45/$(arch)/rpm-ostree{,-libs}-2026.3-2.fc45.$(arch).rpm
fi
# if we didn't get the update we need then let's error
if [ "$(rpm -q --qf '%{NVR}' rpm-ostree)" != 'rpm-ostree-2026.3-2.fc45' ]; then
echo "Expected rpm-ostree-2026.3-2.fc45 but got $(rpm -q --qf '%{NVR}' rpm-ostree)"
exit 1
fi
fi