From 103322bde52145f4e78b41ddd90df7dcb0c89a98 Mon Sep 17 00:00:00 2001 From: Pablo Acevedo Montserrat Date: Mon, 25 May 2026 14:58:28 +0200 Subject: [PATCH] USHIFT-7042: Enable EUS repos for RHEL 9.4 bootc test images The rhel-9.4-bootc:9.4 base image ships with repos pointing to RHEL 9 latest content instead of RHEL 9.4 EUS. This causes dnf to install greenboot-rs (0.16.x) from RHEL 9.8 instead of bash greenboot (0.15.x) from 9.4 EUS. Greenboot-rs sets RefuseManualStartStop=yes on the greenboot-healthcheck.service unit, breaking both the test framework's Restart Greenboot keyword and the rollback/reboot mechanism. Lock releasever and enable EUS repositories before installing packages, matching the pattern used on release-4.20+ via rpm-repo-config.sh. --- .../layer1-base/group1/rhel94-test-agent.containerfile | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/image-blueprints-bootc/layer1-base/group1/rhel94-test-agent.containerfile b/test/image-blueprints-bootc/layer1-base/group1/rhel94-test-agent.containerfile index 0f675e600a..20067b45c2 100644 --- a/test/image-blueprints-bootc/layer1-base/group1/rhel94-test-agent.containerfile +++ b/test/image-blueprints-bootc/layer1-base/group1/rhel94-test-agent.containerfile @@ -4,6 +4,15 @@ FROM registry.redhat.io/rhel9-eus/rhel-9.4-bootc:9.4 ARG USHIFT_RPM_REPO_NAME=microshift-local ARG USHIFT_RPM_REPO_PATH=/tmp/$USHIFT_RPM_REPO_NAME +# Lock the OS release version and enable EUS repositories to prevent +# the installation of packages belonging to a newer OS release +RUN source /etc/os-release && \ + echo "${VERSION_ID}" > /etc/dnf/vars/releasever && \ + dnf config-manager --set-disabled '*' && \ + dnf config-manager --set-enabled \ + "rhel-9-for-$(uname -m)-baseos-eus-rpms" \ + "rhel-9-for-$(uname -m)-appstream-eus-rpms" + # Copy the MicroShift repository contents COPY ./rpm-repos/$USHIFT_RPM_REPO_NAME $USHIFT_RPM_REPO_PATH