Merge "Disable all repositories after attaching a pool"

This commit is contained in:
Zuul 2021-12-06 20:19:59 +00:00 committed by Gerrit Code Review
commit b22161c116
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
subscription-manager attach --pool $DIB_RHSM_POOL
fi
subscription-manager repos --disable=*
# optional repo required for diskimage-builder dependency
if [ "$DISTRO_NAME" == "rhel7" ]; then
repos="--enable rhel-7-server-optional-rpms"