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