From bde7d895df90a6bc1d1287e8e87fca62825fa70a Mon Sep 17 00:00:00 2001 From: Lubomir Rintel Date: Wed, 17 Jul 2024 15:58:09 +0200 Subject: [PATCH] build-from-source: use buildroot repo on RHEL 10 The buildroot package repositories are not present on RHEL 10 installs, so we can't build-from-source there. Drag in whichever latest buildroot is there. Hopefully that's good enough, it's roughly analogous to what we do for RHEL 8. --- contrib/rh-bkr/build-from-source.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/contrib/rh-bkr/build-from-source.sh b/contrib/rh-bkr/build-from-source.sh index 2487dcc040..f4fbe5ca4e 100755 --- a/contrib/rh-bkr/build-from-source.sh +++ b/contrib/rh-bkr/build-from-source.sh @@ -26,6 +26,10 @@ YUM_ARGS=() if grep -q --quiet Ootpa /etc/redhat-release; then YUM_ARGS+=("--enablerepo=rhel-8-buildroot") fi +if grep -q --quiet Coughlan /etc/redhat-release; then + rpmkeys --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release + YUM_ARGS+=('--repofrompath=buildroot,http://download.devel.redhat.com/rhel-$releasever/nightly/BUILDROOT-$releasever-Public-Beta/latest-BUILDROOT-$releasever-RHEL-$releasever/compose/Buildroot/$basearch/os') +fi if [[ "$INSTALL_DEPENDENCIES" == yes ]]; then $SUDO yum install \