From fb8cf95b6fb0820867ebfd262c38d2cae5ab43fa Mon Sep 17 00:00:00 2001 From: Ben Nemec Date: Wed, 16 Nov 2016 16:27:24 -0600 Subject: [PATCH] Disable all repos in os-refresh-config too This change was made for pre-install so it applies during the image build, but wasn't applied to the os-refresh-config script that would run after deployment. The same problems apply there, so we should do the same thing. Change-Id: I4b8534cc9586eeb588b5c358550e76e27d40556a Closes-Bug: 1629922 --- .../os-refresh-config/pre-configure.d/06-rhel-registration | 2 ++ 1 file changed, 2 insertions(+) diff --git a/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration b/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration index 21f386f28..851aa08e6 100755 --- a/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration +++ b/elements/rhel-common/os-refresh-config/pre-configure.d/06-rhel-registration @@ -131,6 +131,8 @@ case "${REG_METHOD:-}" in rpm -Uvh "$REG_SAT_URL/pub/katello-ca-consumer-latest.noarch.rpm" || true echo "Registering with options: $sanitized_opts" subscription-manager register $opts + echo "Disabling all previous repos" + subscription-manager repos --disable=\* echo "Enabling repos: $user_repos" subscription-manager $repos echo "Installing katello-agent"