Skip to content

Commit

Permalink
Install pacman-contrib in install script
Browse files Browse the repository at this point in the history
rankmirrors was moved to pacman-contrib and no longer included in the latest ISO so much be installed before it can be used.

I also changed it to update the mirrors from the online copy of the mirrors filtered by country code as running rankmirrors on all the default mirrors was very slow.
  • Loading branch information
mdaffin committed Sep 11, 2018
1 parent 38f5d38 commit f8da560
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions installer/install-arch
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ set -uo pipefail
trap 's=$?; echo "$0: Error on line "$LINENO": $BASH_COMMAND"; exit $s' ERR

REPO_URL="https://s3.eu-west-2.amazonaws.com/mdaffin-arch/repo/x86_64"
MIRRORLIST_URL="https://www.archlinux.org/mirrorlist/?country=GB&protocol=https&use_mirror_status=on"

pacman -Sy --noconfirm pacman-contrib

echo "Updating mirror list"
mv /etc/pacman.d/mirrorlist /etc/pacman.d/mirrorlist.original
rankmirrors -n 6 /etc/pacman.d/mirrorlist.original > /etc/pacman.d/mirrorlist
curl -s "$MIRRORLIST_URL" | \
sed -e 's/^#Server/Server/' -e '/^#/d' | \
rankmirrors -n 5 - > /etc/pacman.d/mirrorlist

### Get infomation from user ###
hostname=$(dialog --stdout --inputbox "Enter hostname" 0 0) || exit 1
Expand Down

0 comments on commit f8da560

Please sign in to comment.