From cd90859cbaf14d68cf19a0c74bb90d345579e7bc Mon Sep 17 00:00:00 2001 From: 7006 <22399553+7006@users.noreply.github.com> Date: Sun, 22 Feb 2026 00:31:58 +0200 Subject: [PATCH] Remove duplicated CentOS 7 mirrorlist update logic Remove duplicated CentOS 7 mirrorlist handling introduced in this commit https://github.com/devcontainers/features/commit/52c79b4963879dd941c67b583199ec7966e41ab4 --- src/common-utils/main.sh | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/common-utils/main.sh b/src/common-utils/main.sh index b0fd2f3b0..3f6b13477 100644 --- a/src/common-utils/main.sh +++ b/src/common-utils/main.sh @@ -378,14 +378,6 @@ if [ "${ADJUSTED_ID}" = "rhel" ] && [ "${VERSION_CODENAME-}" = "centos7" ]; then sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo fi -if [ "${ADJUSTED_ID}" = "rhel" ] && [ "${VERSION_CODENAME-}" = "centos7" ]; then - # As of 1 July 2024, mirrorlist.centos.org no longer exists. - # Update the repo files to reference vault.centos.org. - sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo - sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo - sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo -fi - # Install packages for appropriate OS case "${ADJUSTED_ID}" in "debian")