diff --git a/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration b/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration index 841a8ee4..6afe2fc5 100755 --- a/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration +++ b/diskimage_builder/elements/rhel-common/pre-install.d/00-rhel-registration @@ -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