2025-08-27 23:14:12 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
2025-08-28 21:40:29 +00:00
|
|
|
# This script is called in the buildah path to modify the build environment
|
|
|
|
|
# before entering the shared build-rootfs script. Example use cases are to
|
|
|
|
|
# fast-track fixes or work around bugs.
|
|
|
|
|
|
2025-08-27 23:14:12 +00:00
|
|
|
arch=$(uname -m)
|
|
|
|
|
. /etc/os-release
|
|
|
|
|
|
2025-08-28 21:40:29 +00:00
|
|
|
# Fast-track backport of https://github.com/coreos/rpm-ostree/pull/5475.
|
|
|
|
|
# Comment this out if not used to not unnecessarily pay for repo metadata.
|
2025-09-09 09:38:40 +00:00
|
|
|
cp /src/fedora-coreos-continuous.repo /etc/yum.repos.d
|
2025-09-18 03:45:55 +00:00
|
|
|
if [ "${VERSION_ID}" == 42 ]; then
|
|
|
|
|
sudo dnf update rpm-ostree -y --repo fedora-coreos-continuous --releasever "$VERSION_ID"
|
|
|
|
|
else
|
|
|
|
|
sudo dnf install rpm-ostree-2025.10 --allow-downgrade -y --repo fedora-coreos-continuous --releasever "$VERSION_ID"
|
2025-08-27 23:14:12 +00:00
|
|
|
fi
|