From 71449a60ff15cfedfa527165d6fe8cd8ccb8efb0 Mon Sep 17 00:00:00 2001 From: David Hill Date: Mon, 1 Feb 2021 09:42:56 -0500 Subject: [PATCH] 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 --- .../elements/rhel-common/pre-install.d/00-rhel-registration | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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