Merge "Disable all repositories after attaching a pool"
This commit is contained in:
commit
b22161c116
@ -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"
|
||||||
|
Loading…
Reference in New Issue
Block a user