mirror of
https://github.com/coreos/fedora-coreos-config.git
synced 2026-02-05 09:45:30 +01:00
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.
18 lines
558 B
Bash
Executable File
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
|