Merge "Add rocky support to the epel element"

This commit is contained in:
Zuul 2022-02-22 07:40:13 +00:00 committed by Gerrit Code Review
commit 3e4e66de16
3 changed files with 5 additions and 2 deletions

View File

@ -11,6 +11,10 @@
"rhel7": {
"wget": "wget",
"yum-utils": "yum-utils"
},
"rocky": {
"wget": "wget",
"yum-utils": "yum-utils"
}
},
"default": {

View File

@ -6,7 +6,7 @@ fi
set -eu
set -o pipefail
if [[ ${DISTRO_NAME} =~ "centos" && "${DIB_RELEASE%-stream}" -lt '9' ]]; then
if [[ (${DISTRO_NAME} =~ "centos" || ${DISTRO_NAME} =~ "rocky") && "${DIB_RELEASE%-stream}" -lt '9' ]]; then
# Centos has "epel-release" in extras, which is default enabled.
${YUM} install -y epel-release
else