configs: common: add pacman-init for initialising keyrings

Based on https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/configs/releng/airootfs/etc/systemd/system/pacman-init.service
This commit is contained in:
anonymix007 2024-08-22 12:08:03 +03:00
parent b1ec0e395c
commit c960407ffd

View File

@ -0,0 +1,17 @@
filesystem:
files:
- path: /etc/systemd/system/pacman-init.service
content: |
[Unit]
Description=Initializes Pacman keyring
Requires=etc-pacman.d-gnupg.mount
After=etc-pacman.d-gnupg.mount time-sync.target
BindsTo=etc-pacman.d-gnupg.mount
Before=archlinux-keyring-wkd-sync.service
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/pacman-key --init
ExecStart=/usr/bin/pacman-key --populate
[Install]
WantedBy=multi-user.target