Skip to content

Add upstream Arch fallback mirrors to boot.sh#6202

Open
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6158-mirror-fallback
Open

Add upstream Arch fallback mirrors to boot.sh#6202
sridhar-3009 wants to merge 1 commit into
basecamp:masterfrom
sridhar-3009:fix/6158-mirror-fallback

Conversation

@sridhar-3009

Copy link
Copy Markdown

Fixes #6158

Problem

boot.sh overwrites /etc/pacman.d/mirrorlist with a single omarchy mirror line. If that mirror is temporarily behind and a package version (e.g. git-2.55.0-1) returns HTTP 404, pacman -Syu --needed git fails with no fallback and the entire bootstrap is aborted.

Fix

Add two well-known upstream Arch Linux mirrors (geo.mirror.pkgbuild.com and mirror.rackspace.com) after the primary omarchy mirror in each branch of the if block. Pacman tries mirrors in order, so the omarchy mirror is still preferred; the upstream mirrors serve as a safety net when it's temporarily stale.

The approach matches how robust mirrorlist configurations are typically set up and does not risk pulling in packages from an incompatible state — pacman -Syu still updates the database from whichever mirror responds, and only git is installed at this stage.

If the primary omarchy mirror 404s a package (e.g. git), pacman has
no fallback and the bootstrap fails. Add two well-known Arch mirrors
after the omarchy one so pacman can satisfy the package from upstream
if the curated mirror is temporarily behind.

Fixes basecamp#6158
Copilot AI review requested due to automatic review settings July 10, 2026 04:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds upstream Arch Linux fallback mirrors to the pacman mirrorlist that boot.sh writes during bootstrap, improving resilience when the primary Omarchy mirror is temporarily stale (e.g., package 404s) and preventing early install aborts.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Writes a multi-entry /etc/pacman.d/mirrorlist (Omarchy mirror first) for dev, rc, and stable branches.
  • Adds geo.mirror.pkgbuild.com and mirror.rackspace.com as ordered fallback mirrors in each branch.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread boot.sh
Comment on lines +28 to +32
{
echo 'Server = https://mirror.omarchy.org/$repo/os/$arch'
echo 'Server = https://geo.mirror.pkgbuild.com/$repo/os/$arch'
echo 'Server = https://mirror.rackspace.com/archlinux/$repo/os/$arch'
} | sudo tee /etc/pacman.d/mirrorlist >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants