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

25 lines
548 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
cat >> /etc/pacman.conf << 'EOF'
[cs_any]
2020-08-01 17:18:56 +00:00
Server = https://aur.cryptic.systems/any/
2020-06-01 15:01:46 +00:00
[cs_x86_64]
2020-08-01 17:18:56 +00:00
Server = https://aur.cryptic.systems/x86_64/
2020-06-01 15:01:46 +00:00
EOF