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
Jonathan Lebon 1c0725eb93 Add concept of a buildroot-prep script
We want to fast-track the backport of
https://github.com/coreos/rpm-ostree/pull/5475 to unblock switch f44
and f43 over to the buildah path. Since this is likely not the first
time we'll do this and likely not only for FCOS, add a new concept of
an optional `buildroot-prep` script which can do $things like updating
packages before entering build-rootfs.

That specific script added here will not be automatically inherited by
coreos/rhel-coreos-config.
2025-08-27 19:11:44 -04:00

18 lines
558 B
Bash
Executable File

#!/bin/bash
set -euo pipefail
arch=$(uname -m)
. /etc/os-release
# fast-track backport of https://github.com/coreos/rpm-ostree/pull/5475
case "$VERSION_ID" in
43) urls=(https://kojipkgs.fedoraproject.org//packages/rpm-ostree/2025.10/3.fc43/"$arch"/rpm-ostree-{,libs-}2025.10-3.fc43."$arch".rpm);;
44) urls=(https://kojipkgs.fedoraproject.org//packages/rpm-ostree/2025.10/3.fc44/"$arch"/rpm-ostree-{,libs-}2025.10-3.fc44."$arch".rpm);;
*) exit 0;;
esac
if rpm -q "rpm-ostree-2025.10-1.fc43.$arch"; then
sudo dnf install -y "${urls[@]}"
fi