Skip to content

Commit 2e00a33

Browse files
Merge pull request #6490 from ggiguash/rhel-disable-prerelease-repos
USHIFT-6848: Disable default pre-release RHEL 9.8 and 10.2 repositories
2 parents 7b2121a + d63e66f commit 2e00a33

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

test/image-blueprints-bootc/layer1-base/group1/rhel102-test-agent.containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ FROM registry.stage.redhat.io/rhel10/rhel-bootc:10.2
44
ARG USHIFT_RPM_REPO_NAME=microshift-local
55
ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME
66

7-
# Configure the RPM repositories (no EUS in staging environment)
7+
# Configure the RPM repositories
8+
# - No EUS repositories in staging environment
9+
# - Disable default repositories to avoid pre-release repo access errors
810
COPY --chmod=755 ./bootc-images/rpm-repo-config.sh /tmp/rpm-repo-config.sh
9-
RUN /tmp/rpm-repo-config.sh && rm -f /tmp/rpm-repo-config.sh
11+
RUN /tmp/rpm-repo-config.sh --disable-all && rm -f /tmp/rpm-repo-config.sh
1012

1113
# Configure the RHEL mirror RPM repositories (for use in the staging environment)
1214
ARG RHEL_MIRROR_REPO_NAME=rhel102-mirror.repo

test/image-blueprints-bootc/layer1-base/group1/rhel98-test-agent.containerfile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ FROM registry.stage.redhat.io/rhel9/rhel-bootc:9.8
44
ARG USHIFT_RPM_REPO_NAME=microshift-local
55
ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME
66

7-
# Configure the RPM repositories (no EUS in staging environment)
7+
# Configure the RPM repositories
8+
# - No EUS repositories in staging environment
9+
# - Disable default repositories to avoid pre-release repo access errors
810
COPY --chmod=755 ./bootc-images/rpm-repo-config.sh /tmp/rpm-repo-config.sh
9-
RUN /tmp/rpm-repo-config.sh && rm -f /tmp/rpm-repo-config.sh
11+
RUN /tmp/rpm-repo-config.sh --disable-all && rm -f /tmp/rpm-repo-config.sh
1012

1113
# Configure the RHEL mirror RPM repositories (for use in the staging environment)
1214
ARG RHEL_MIRROR_REPO_NAME=rhel98-mirror.repo

test/image-blueprints-bootc/layer4-release/group2/rhel102-bootc-brew-lrel-fips.containerfile

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ match-architectures = ["x86_64"]
1010
EOF
1111

1212
# Enable the FIPS crypto policy
13-
#
14-
# Note: CNI plugins are required for podman to operate normally on RHEL 9.x.
15-
# This package is no longer installed as cri-o dependency.
16-
RUN dnf install -y crypto-policies-scripts containernetworking-plugins && \
13+
RUN dnf install -y crypto-policies-scripts && \
1714
update-crypto-policies --no-reload --set FIPS && \
1815
dnf clean all
1916
# {{- end -}}

test/image-blueprints-bootc/templates/rpm-repo-config.sh.template

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ while [ $# -gt 0 ] ; do
2424
enable_eus_repositories
2525
shift
2626
;;
27+
--disable-all)
28+
dnf config-manager --set-disabled '*'
29+
shift
30+
;;
2731
*)
2832
echo "Unknown option: $1"
2933
exit 1

0 commit comments

Comments
 (0)