1
0
mirror of https://github.com/coreos/fedora-coreos-config.git synced 2026-02-05 09:45:30 +01:00
Files
fedora-coreos-config/buildroot-prep

19 lines
718 B
Plaintext
Raw Normal View History

#!/bin/bash
set -euo pipefail
# 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.
arch=$(uname -m)
. /etc/os-release
# 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.
cp /src/fedora-coreos-continuous.repo /etc/yum.repos.d
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"
fi