From 6b37a293f4e164f2695ae26fb6de2f343da0c382 Mon Sep 17 00:00:00 2001 From: Matt Anson Date: Tue, 25 Feb 2025 14:19:47 +0000 Subject: [PATCH] Prevent rocky distro-sync installing repo packages --- elements/rocky-container-stackhpc/containerfiles/9-stackhpc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elements/rocky-container-stackhpc/containerfiles/9-stackhpc b/elements/rocky-container-stackhpc/containerfiles/9-stackhpc index d7666c9..db7dde7 100644 --- a/elements/rocky-container-stackhpc/containerfiles/9-stackhpc +++ b/elements/rocky-container-stackhpc/containerfiles/9-stackhpc @@ -11,7 +11,7 @@ RUN if [[ ${ROCKY_USE_CUSTOM_DNF_MIRRORS} != "false" ]]; then \ for REPO_URL in $(echo ${ROCKY_CUSTOM_DNF_MIRROR_URLS} | sed 's/,/ /g'); do \ dnf config-manager --add-repo ${REPO_URL}; \ done && \ - dnf --allowerasing -y distro-sync; \ + dnf --allowerasing --exclude rocky-repos --exclude rocky-release -y distro-sync; \ fi RUN dnf group install -y 'Minimal Install' --allowerasing && \