Generate mirrorlist with reflector

If it's available.
This commit is contained in:
Kron4ek 2021-05-13 02:58:34 +05:00 committed by GitHub
parent a3450c7757
commit 2ab89c45ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -394,7 +394,12 @@ rm arch.tar.gz
mount_chroot
generate_localegen
generate_mirrorlist
if command -v reflector 1>/dev/null; then
reflector --protocol https --score 5 --sort rate --save mirrorlist
else
generate_mirrorlist
fi
rm "${bootstrap}"/etc/locale.gen
cp locale.gen "${bootstrap}"/etc/locale.gen