From 16cfbbd2e5e2c4771706e2665cf9295ac2a3fc39 Mon Sep 17 00:00:00 2001 From: Christian Kotte Date: Sun, 12 Jul 2020 22:36:17 +0200 Subject: [PATCH] Move pacman mirror config just before package installation --- scripts/install-base.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install-base.sh b/scripts/install-base.sh index bf49b1c..b77fdd8 100644 --- a/scripts/install-base.sh +++ b/scripts/install-base.sh @@ -21,9 +21,6 @@ TARGET_DIR='/mnt' COUNTRY=${COUNTRY:-US} MIRRORLIST="https://www.archlinux.org/mirrorlist/?country=${COUNTRY}&protocol=http&protocol=https&ip_version=4&use_mirror_status=on" -echo ">>>> install-base.sh: Setting pacman ${COUNTRY} mirrors.." -curl -s "$MIRRORLIST" | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist - echo ">>>> install-base.sh: Clearing partition table on ${DISK}.." /usr/bin/sgdisk --zap ${DISK} @@ -43,6 +40,9 @@ echo ">>>> install-base.sh: Creating /root filesystem (ext4).." echo ">>>> install-base.sh: Mounting ${ROOT_PARTITION} to ${TARGET_DIR}.." /usr/bin/mount -o noatime,errors=remount-ro ${ROOT_PARTITION} ${TARGET_DIR} +echo ">>>> install-base.sh: Setting pacman ${COUNTRY} mirrors.." +curl -s "$MIRRORLIST" | sed 's/^#Server/Server/' > /etc/pacman.d/mirrorlist + echo ">>>> install-base.sh: Bootstrapping the base installation.." /usr/bin/pacstrap ${TARGET_DIR} base base-devel linux