use reflector to find fastest mirror

This commit is contained in:
Noa Himesaka
2022-03-02 08:37:30 +09:00
parent de49553a3e
commit 72502a782c
2 changed files with 4 additions and 1 deletions
+3 -1
View File
@@ -14,7 +14,9 @@ jobs:
cd /build
useradd builduser -m
passwd -d builduser
pacman -Syu --noconfirm --needed sudo git base-devel
pacman -Syu --noconfirm --needed reflector
reflector -f 5 --sort rate -p https --save /etc/pacman.d/mirrorlist
pacman -S --noconfirm --needed sudo git base-devel
printf 'builduser ALL=(ALL) ALL\\n' | tee -a /etc/sudoers
chown -R builduser:builduser ./
sudo -u builduser bash -c './prepare.sh'
@@ -39,6 +39,7 @@ Server = https://github.com/Redecorating/archlinux-t2-packages/releases/download
Server = https://mirror.funami.tech/arch-mact2/os/x86_64
SigLevel = Optional TrustAll
EOF
sudo reflector -f 5 --sort rate -p https --save /etc/pacman.d/mirrorlist
sudo pacman-key --init
yes | sudo pacman-key --recv-keys DEB7F121BAAA6F4E --keyserver pgp.mit.edu
yes | sudo pacman-key --lsign-key DEB7F121BAAA6F4E