From: Kevin Sandi Date: Mon, 7 Apr 2025 22:18:16 +0000 (-0600) Subject: Fix: Remove deprecated mirror repos X-Git-Tag: v0.16.7^0 X-Git-Url: https://gerrit.linuxfoundation.org/infra/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F44%2F73444%2F3;p=releng%2Fcommon-packer.git Fix: Remove deprecated mirror repos Signed-off-by: Kevin Sandi Change-Id: I2d2b13958545a32216c3d2d82b108a06504890d3 --- diff --git a/.github/workflows/gerrit-verify.yaml b/.github/workflows/gerrit-verify.yaml index 5cccdc3..2943c94 100644 --- a/.github/workflows/gerrit-verify.yaml +++ b/.github/workflows/gerrit-verify.yaml @@ -120,7 +120,7 @@ jobs: if: steps.changes.outputs.src == 'true' shell: bash run: | - echo "${{ secrets.CLOUDS_ENV_B64 }}" | base64 --decode \ + echo "${{ secrets.CLOUD_ENV_B64 }}" | base64 --decode \ > "${GITHUB_WORKSPACE}/cloud-env.pkrvars.hcl" - name: Create cloud.yaml file for openstack client id: create-cloud-yaml-file diff --git a/provision/install-python.sh b/provision/install-python.sh index 76a83aa..71a130b 100755 --- a/provision/install-python.sh +++ b/provision/install-python.sh @@ -104,6 +104,11 @@ if is_ubuntu; then fi if is_centos8; then + echo "Clean up deprecated repos" + sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/CentOS-*.repo + sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/CentOS-*.repo + sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/CentOS-*.repo + echo "Install python38" dnf clean all dnf install -y python38