Add upstream Arch fallback mirrors to boot.sh#6202
Open
sridhar-3009 wants to merge 1 commit into
Open
Conversation
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
Contributor
There was a problem hiding this comment.
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) fordev,rc, andstablebranches. - Adds
geo.mirror.pkgbuild.comandmirror.rackspace.comas ordered fallback mirrors in each branch.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #6158
Problem
boot.shoverwrites/etc/pacman.d/mirrorlistwith 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 gitfails with no fallback and the entire bootstrap is aborted.Fix
Add two well-known upstream Arch Linux mirrors (
geo.mirror.pkgbuild.comandmirror.rackspace.com) after the primary omarchy mirror in each branch of theifblock. 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
mirrorlistconfigurations are typically set up and does not risk pulling in packages from an incompatible state —pacman -Syustill updates the database from whichever mirror responds, and onlygitis installed at this stage.