From 2ab89c45ac56c71b0158fe61eded047ab046012e Mon Sep 17 00:00:00 2001 From: Kron4ek Date: Thu, 13 May 2021 02:58:34 +0500 Subject: [PATCH] Generate mirrorlist with reflector If it's available. --- create-arch-bootstrap.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/create-arch-bootstrap.sh b/create-arch-bootstrap.sh index 6a8feb4..8772859 100755 --- a/create-arch-bootstrap.sh +++ b/create-arch-bootstrap.sh @@ -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