summaryrefslogtreecommitdiff
path: root/stages/first_stage.sh
diff options
context:
space:
mode:
Diffstat (limited to 'stages/first_stage.sh')
-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