Skip to content
Snippets Groups Projects

Pacman keyring init

Merged Amin Vakil requested to merge aminvakil/infrastructure:pacman_keyring_init into master
All threads resolved!
2 files
+ 23
1
Compare changes
  • Side-by-side
  • Inline
Files
2
  • Creates a systemd service which executes these commands on first boot:
    
    pacman-key --init
    
    pacman-key --populate archlinux
    
    Also it makes sure /etc/pacman.d/gnupg is not absent.
    
    At last it removes /etc/machine-id to make sure systemd launches first
    boot services.
+ 13
0
[Unit]
Description=Initializes Pacman keyring
Before=sshd.service
ConditionFirstBoot=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/pacman-key --init
ExecStart=/usr/bin/pacman-key --populate archlinux
[Install]
WantedBy=multi-user.target
Loading