From dc365dda15ebc37f412b00c1cd03711ddd4eb4cb Mon Sep 17 00:00:00 2001 From: Bug Bounty Zip <133497067+BugBountyzip@users.noreply.github.com> Date: Tue, 26 May 2026 21:18:14 +0300 Subject: [PATCH] Fix Arch mirror selection in image builds --- distros/arch/image.yaml | 9 ++++++--- distros/cachyos/image.yaml | 8 ++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/distros/arch/image.yaml b/distros/arch/image.yaml index b898bda..91d0a8c 100644 --- a/distros/arch/image.yaml +++ b/distros/arch/image.yaml @@ -125,9 +125,12 @@ actions: pacman-key --init pacman-key --populate archlinux - # Fetch up-to-date HTTPS mirrors ranked by score, force-refresh package DBs - curl -fsSL "https://archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" \ - | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist + # Keep CI on a small stable mirror set. The full active global list can + # select slow mirrors and fail pacman's low-speed download timeout. + cat > /etc/pacman.d/mirrorlist <<'EOF' + Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch + Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch + EOF pacman -Syy --noconfirm diff --git a/distros/cachyos/image.yaml b/distros/cachyos/image.yaml index 4ad0325..e3b2439 100644 --- a/distros/cachyos/image.yaml +++ b/distros/cachyos/image.yaml @@ -186,8 +186,12 @@ actions: # Enable #[multilib] / #Include block (\\\\ in YAML would break the sed address regex) sed -i '/^#\[multilib\]/,/^#Include/s/^#//' /etc/pacman.conf - curl -fsSL "https://archlinux.org/mirrorlist/?country=all&protocol=https&use_mirror_status=on" \ - | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist + # Keep CI on a small stable mirror set. The full active global list can + # select slow mirrors and fail pacman's low-speed download timeout. + cat > /etc/pacman.d/mirrorlist <<'EOF' + Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch + Server = https://mirrors.kernel.org/archlinux/$repo/os/$arch + EOF pacman -Syy --noconfirm