diff --git a/test/kickstart-templates/includes/post-cos9rpm.cfg b/test/kickstart-templates/includes/post-cos9rpm.cfg index 2e0a8d4123..43f3591494 100644 --- a/test/kickstart-templates/includes/post-cos9rpm.cfg +++ b/test/kickstart-templates/includes/post-cos9rpm.cfg @@ -21,17 +21,19 @@ EOF # The openshift-client dependency from OpenShift Mirror # Only the released previous minor version is guaranteed to be available +# Excludes all to avoid unintentionally sourcing packages from here that +# should come from a centos repos. OCPVERSION=4.REPLACE_PREVIOUS_MINOR_VERSION -# Do not remove the trailing slash in the URL or some downloads -# may fail depending on a region -OCC_SRC="https://mirror.openshift.com/pub/openshift-v4/$(uname -m)/dependencies/rpms/${OCPVERSION}-el9-beta/" -OCC_LOC="$(mktemp -d /tmp/openshift-client-XXXXXXXX)" +OCPREPO="openshift-${OCPVERSION}-mirror" +cat > "/etc/yum.repos.d/${OCPREPO}.repo" <