Disable all repositories after attaching a pool

Disable all repositories after attaching a pool as in some cases that
I still can't explain, the "-htb-" repositories are enabled by default
which causes problems later on when trying to install the packages.

Change-Id: I86b3baccd4b0932eb3686a17485f64ee09994dad
This commit is contained in:
David Hill 2020-05-13 17:18:19 -04:00
parent 9080d04923
commit 68912bb76f
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ if [ -n "${DIB_RHSM_USER:-}" ] && [ -n "${DIB_RHSM_PASSWORD:-}" ] ; then
else else
subscription-manager attach --pool $DIB_RHSM_POOL subscription-manager attach --pool $DIB_RHSM_POOL
fi fi
subscription-manager repos --disable=*
# optional repo required for diskimage-builder dependency # optional repo required for diskimage-builder dependency
if [ "$DISTRO_NAME" == "rhel7" ]; then if [ "$DISTRO_NAME" == "rhel7" ]; then
repos="--enable rhel-7-server-optional-rpms" repos="--enable rhel-7-server-optional-rpms"