Merge "Add aarch64 support for rhel"

This commit is contained in:
Zuul 2021-03-09 01:52:31 +00:00 committed by Gerrit Code Review
commit 739b529a33
3 changed files with 11 additions and 4 deletions

View File

@ -9,17 +9,18 @@ set -o pipefail
opts=
attach_opts=
arch=$(uname -m)
if [ "${DIB_RELEASE:-7}" == "7" ]; then
repos="repos --enable rhel-7-server-rpms"
satellite_repo="rhel-7-server-rh-common-rpms"
elif [ "${DIB_RELEASE}" == "8" ]; then
if [ -n "${REG_RELEASE:-}" ]; then
repos="repos --enable rhel-8-for-x86_64-appstream-eus-rpms --enable rhel-8-for-x86_64-baseos-eus-rpms"
repos="repos --enable rhel-8-for-${arch}-appstream-eus-rpms --enable rhel-8-for-${arch}-baseos-eus-rpms"
else
repos="repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms"
repos="repos --enable rhel-8-for-${arch}-appstream-rpms --enable rhel-8-for-${arch}-baseos-rpms"
fi
satellite_repo="satellite-tools-6.5-for-rhel-8-x86_64-rpms"
satellite_repo="satellite-tools-6.5-for-rhel-8-${arch}-rpms"
fi
REG_SAT_CERT=${REG_SAT_CERT:-"katello-ca-consumer-latest.noarch.rpm"}

View File

@ -11,11 +11,13 @@ set -o pipefail
if [[ "amd64 x86_64" =~ "$ARCH" ]]; then
ARCH="x86_64"
elif [[ "$ARCH" =~ (arm64|aarch64) ]]; then
ARCH="aarch64"
elif [[ "ppc64le" =~ "$ARCH" ]]; then
# We don't need to do anything here other than avoid the else clause
:
else
echo 'rhel root element only supports x86_64 and ppc64le values for $ARCH'
echo 'rhel root element only supports x86_64, aarch64 and ppc64le values for $ARCH'
exit 1
fi

View File

@ -0,0 +1,4 @@
---
features:
- |
Add aarch64 support for ''rhel''.