Browse Source

Merge "Disable all repositories after attaching a pool"

changes/70/820970/1
Zuul 6 months ago committed by Gerrit Code Review
parent
commit
b22161c116
  1. 1
      diskimage_builder/elements/rhel-common/pre-install.d/00-rhsm

1
diskimage_builder/elements/rhel-common/pre-install.d/00-rhsm

@ -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"

Loading…
Cancel
Save