mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-11-03 14:49:47 -09:00
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:
parent
801446cafd
commit
66d809dcb6
1 changed files with 20 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue