From 543f34dca6596fb20a89a8a5dd443fe876fcd1d3 Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Sun, 7 Jul 2024 11:21:55 +0300 Subject: [PATCH] Sync mirrors after using reflector #136 --- create-arch-bootstrap.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/create-arch-bootstrap.sh b/create-arch-bootstrap.sh index 7129107..572356b 100755 --- a/create-arch-bootstrap.sh +++ b/create-arch-bootstrap.sh @@ -277,7 +277,7 @@ generate_localegen if command -v reflector 1>/dev/null; then echo "Generating mirrorlist..." - reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save mirrorlist + reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 10 --sort rate --save mirrorlist reflector_used=1 else generate_mirrorlist @@ -345,7 +345,8 @@ run_in_chroot pacman --noconfirm --needed -S base reflector squashfs-tools faker # Regenerate the mirrorlist with reflector if reflector was not used before if [ -z "${reflector_used}" ]; then echo "Generating mirrorlist..." - run_in_chroot reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 7 --sort rate --save /etc/pacman.d/mirrorlist + run_in_chroot reflector --connection-timeout 10 --download-timeout 10 --protocol https --score 10 --sort rate --save /etc/pacman.d/mirrorlist + run_in_chroot pacman -Syu --noconfirm fi export -f install_packages