summaryrefslogtreecommitdiff
path: root/bootstrap-arch32-trust
blob: f8f630f2c1cebe6680806ecad2257cd21dcdfc16 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash

set -e

keyring=$(
  curl -Ss 'https://mirror.archlinux32.org/x86_64/releng/' \
  | tr '"' '\n' \
  | grep '^archlinux32-keyring-.*-any\.pkg\.tar\.zst$' \
  | grep -vwF transition \
  | sort \
  | tail -n1
)

curl -o "/${keyring}" "https://mirror.archlinux32.org/x86_64/releng/${keyring}"
pacman -U --noconfirm "/${keyring}"
rm "/${keyring}"