fix pacman keyring initialization during bootup

This commit is contained in:
Tobias Powalowski 2022-09-01 13:10:00 +02:00
parent 7b4755ec00
commit 6b01805f9e

View file

@ -1,13 +1,11 @@
[Unit]
Description=Initializes Pacman keyring
Requires=etc-pacman.d-gnupg.mount
After=etc-pacman.d-gnupg.mount
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/pacman-key --init
ExecStart=/usr/bin/bash -c "/usr/bin/pacman-key --populate $(basename /usr/share/pacman/keyrings/*.gpg | sed -e 's#.gpg##')"
ExecStart=/usr/bin/bash -c "/usr/bin/pacman-key --populate"
[Install]
WantedBy=multi-user.target