🗃️ Strip CRB repos before fetching repo files in 8-dev image 🗃️

Dockerfile.8-dev: remove any /etc/yum.repos.d/*crb*.repo files before
running fetch-repo-file. The earlier crb removal step ran only after
fetch-repo-file, leaving stale CRB repos in place during the fetch.

Dockerfile.8-dev
This commit is contained in:
2026-04-26 01:05:03 -04:00
parent 563a8b9a7e
commit c78eb85c46
+1
View File
@@ -113,6 +113,7 @@ RUN echo "Initializing packages before copying files to image"; \
RUN echo "Setting up dev system"; \ RUN echo "Setting up dev system"; \
if [ -f "/usr/local/bin/pkmgr" ] ; then rm -Rf "/usr/local/bin/pkmgr"; fi; \ if [ -f "/usr/local/bin/pkmgr" ] ; then rm -Rf "/usr/local/bin/pkmgr"; fi; \
rm -f /etc/yum.repos.d/*crb*.repo 2>/dev/null || true; \
bash -c "$(curl -q -LSsf "https://github.com/casjay-base/centos/raw/main/root/.local/bin/fetch-repo-file")"; \ bash -c "$(curl -q -LSsf "https://github.com/casjay-base/centos/raw/main/root/.local/bin/fetch-repo-file")"; \
rm -f /etc/yum.repos.d/*crb*.repo 2>/dev/null || true; \ rm -f /etc/yum.repos.d/*crb*.repo 2>/dev/null || true; \
dnf clean all 2>/dev/null || true; \ dnf clean all 2>/dev/null || true; \