summaryrefslogtreecommitdiff
path: root/stages
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-03-21 15:51:22 +0100
committerxengineering <mail2xengineering@protonmail.com>2020-03-21 15:51:22 +0100
commit430b6099046f6a2cfb09caf14c1e8e47ec9d0cfc (patch)
treedd503849c461f9d760d787e0374c2a13b57c170c /stages
parentb4319a49217e69ad9c2e31199ba52c25b4d1bb7a (diff)
downloadarchinstall-430b6099046f6a2cfb09caf14c1e8e47ec9d0cfc.tar
archinstall-430b6099046f6a2cfb09caf14c1e8e47ec9d0cfc.tar.zst
archinstall-430b6099046f6a2cfb09caf14c1e8e47ec9d0cfc.zip
Implement Optimization of mirrorlist
Diffstat (limited to 'stages')
-rw-r--r--stages/first_stage.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/stages/first_stage.sh b/stages/first_stage.sh
index 302192b..85b1119 100644
--- a/stages/first_stage.sh
+++ b/stages/first_stage.sh
@@ -184,6 +184,12 @@ fi
print_ok "Formatting done"
+# optimize mirrorlist
+
+print_ok "Optimize pacman mirrorlist ..."
+curl "https://www.archlinux.org/mirrorlist/?country=$pacman_mirror_region&protocol=http&protocol=https&ip_version=4" > /etc/pacman.d/mirrorlist
+sed -i '/#Server = *./s/^#//g' /etc/pacman.d/mirrorlist
+
# install packages with pacstrap
pacstrap /mnt $PACKAGE_LIST