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

+4
View File
@@ -2,6 +2,10 @@
# installs use the live ISO's offline pacman.conf until this final restore.
cp -f "$OMARCHY_PATH/default/pacman/pacman-${OMARCHY_MIRROR:-stable}.conf" /etc/pacman.conf
cp -f "$OMARCHY_PATH/default/pacman/mirrorlist-${OMARCHY_MIRROR:-stable}" /etc/pacman.d/mirrorlist
region=$(omarchy-region)
if [[ $region == "China" ]]; then
sed -i -f "$OMARCHY_PATH/default/region/china/pacman.sed" /etc/pacman.conf /etc/pacman.d/mirrorlist
fi
# Wait for CUPS to own the file, the way omarchy-settings does, so pacman does
# not turn the override into a .pacnew during ISO package installation.