Add aarch64 support for rhel
Change-Id: I86ccc56e37b214a45ba620b731b51f58d73471f8
This commit is contained in:
parent
5c1f9a3238
commit
0c51b49414
@ -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"}
|
||||
|
@ -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
|
||||
|
||||
|
@ -0,0 +1,4 @@
|
||||
---
|
||||
features:
|
||||
- |
|
||||
Add aarch64 support for ''rhel''.
|
Loading…
Reference in New Issue
Block a user