build-image/installation-scripts/00-pacman-mirror.sh

29 lines
632 B
Bash
Raw Normal View History

2020-06-01 15:01:46 +00:00
#!/bin/bash
2020-08-02 12:06:07 +00:00
cat > /etc/pacman.d/gnupg/dirmngr.conf <<EOF
keyserver hkps://hkps.pool.sks-keyservers.net:443
keyserver hkp://pool.sks-keyservers.net:80
EOF
2020-06-01 15:01:46 +00:00
# Initialize pacman-key ring
pacman-key --init
2020-08-02 12:06:07 +00:00
pacman-key --refresh-keys
2020-06-01 15:01:46 +00:00
# Add GPG Key
pacman-key --recv-keys 9B146D11A9ED6CA7E279EB1A852BCC170D81A982
pacman-key --lsign 9B146D11A9ED6CA7E279EB1A852BCC170D81A982
# Add additional pacman mirrors
2020-10-11 16:45:40 +00:00
cat >> /etc/pacman.conf <<EOF
2020-06-01 15:01:46 +00:00
2020-10-11 16:45:40 +00:00
[any]
2020-08-01 17:18:56 +00:00
Server = https://aur.cryptic.systems/any/
2020-06-01 15:01:46 +00:00
2020-10-11 16:45:40 +00:00
[x86_64]
2020-08-01 17:18:56 +00:00
Server = https://aur.cryptic.systems/x86_64/
2020-12-23 17:47:42 +00:00
[oracle]
SigLevel = Optional TrustAll
Server = http://linux.shikadi.net/arch/oracle/x86_64/
2020-06-01 15:01:46 +00:00
EOF