List the China mirrors first when the machine's region is China

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 23:13:20 -04:00
1 parent 0c0f4881cb
commit 83d158ad07
8 files changed
+85

No files matched your search

+5
View File
@@ -35,6 +35,11 @@ sudo cp -f /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.bak
echo "Setting channel to $channel"
sudo cp -f "$OMARCHY_PATH/default/pacman/pacman-$channel.conf" /etc/pacman.conf
sudo cp -f "$OMARCHY_PATH/default/pacman/mirrorlist-$channel" /etc/pacman.d/mirrorlist
region=$(omarchy-region)
if [[ $region == "China" ]]; then
echo "Adding China mirrors"
sudo sed -i -f "$OMARCHY_PATH/default/region/china/pacman.sed" /etc/pacman.conf /etc/pacman.d/mirrorlist
fi
# Allow user customization of /etc/pacman.conf before the upgrade runs, so
# custom repositories and IgnorePkg entries shape the downgrade-capable