Skip to content

Commit 51c1728

Browse files
committed
Disable AWS' RHUI repositories
1 parent 2c18bc6 commit 51c1728

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

scripts/devenv-builder/configure-vm.sh

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,13 @@ if ${RHEL_SUBSCRIPTION}; then
128128
sudo subscription-manager repos \
129129
--enable "rhel-${OSVERSION}-for-$(uname -m)-baseos-rpms" \
130130
--enable "rhel-${OSVERSION}-for-$(uname -m)-appstream-rpms"
131+
132+
if dnf repolist --enabled | grep -q "^rhel-${OSVERSION}-baseos-rhui-rpms"; then
133+
sudo dnf config-manager --set-disabled "rhel-${OSVERSION}-baseos-rhui-rpms"
134+
fi
135+
if dnf repolist --enabled | grep -q "^rhel-${OSVERSION}-appstream-rhui-rpms"; then
136+
sudo dnf config-manager --set-disabled "rhel-${OSVERSION}-appstream-rhui-rpms"
137+
fi
131138
fi
132139
fi
133140

0 commit comments

Comments
 (0)