From f53085abf3227e4b758c3f4c04fa96092fc2b599 Mon Sep 17 00:00:00 2001 From: Antoine Martin Date: Sat, 6 Aug 2022 00:23:47 +0200 Subject: [PATCH] add RHEL9 clones almalinux:9 and rocklylinux:9 --- setup_build_containers.sh | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/setup_build_containers.sh b/setup_build_containers.sh index 3cdddc7..fb6d826 100755 --- a/setup_build_containers.sh +++ b/setup_build_containers.sh @@ -100,9 +100,13 @@ for DISTRO in $RPM_DISTROS; do #with stream8 and stream9, #we have to enable EPEL to get the PowerTools repo: RHEL8=0 + RHEL9=0 if [[ "${DISTRO_LOWER}" == *"stream8"* ]]; then RHEL8=1 fi + if [[ "${DISTRO_LOWER}" == *"stream9"* ]]; then + RHEL9=1 + fi if [[ "${DISTRO_LOWER}" == *"oraclelinux:8"* ]]; then RHEL8=1 #the development headers live in this repo: @@ -111,13 +115,19 @@ for DISTRO in $RPM_DISTROS; do if [[ "${DISTRO_LOWER}" == *"rockylinux:8"* ]]; then RHEL8=1 fi + if [[ "${DISTRO_LOWER}" == *"rockylinux:9"* ]]; then + RHEL9=1 + fi if [[ "${DISTRO_LOWER}" == *"almalinux:8"* ]]; then RHEL8=1 fi + if [[ "${DISTRO_LOWER}" == *"almalinux:9"* ]]; then + RHEL9=1 + fi if [ "${RHEL8}" == "1" ]; then buildah run $IMAGE_NAME $PM_CMD install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm fi - if [[ "${DISTRO_LOWER}" == *"stream9"* ]]; then + if [ "${RHEL9}" == "1" ]; then buildah run $IMAGE_NAME $PM_CMD install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm buildah run $IMAGE_NAME $PM_CMD config-manager --set-enabled crb fi