Set eus repositories if REG_RELEASE is set

Set eus repositories if REG_RELEASE is set instead of the base repos
as the current behavior is to use the non-EUS repositories for RHEL
8.2 deployment which breaks image building for customers.

Change-Id: I8e687b27922c3f6fc3d69794866795ab89ecc346
This commit is contained in:
David Hill 2021-02-01 09:42:56 -05:00
parent 2737d909bf
commit 71449a60ff

View File

@ -14,7 +14,11 @@ 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
repos="repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms"
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"
else
repos="repos --enable rhel-8-for-x86_64-appstream-rpms --enable rhel-8-for-x86_64-baseos-rpms"
fi
satellite_repo="satellite-tools-6.5-for-rhel-8-x86_64-rpms"
fi