Add aarch64 support for rhel

Change-Id: I86ccc56e37b214a45ba620b731b51f58d73471f8
This commit is contained in:
Xinliang Liu 2021-01-14 03:33:58 +00:00
parent 5c1f9a3238
commit 0c51b49414
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''.