aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/etc/systemd/system/pacman-init.service12
1 files changed, 12 insertions, 0 deletions
diff --git a/sys/etc/systemd/system/pacman-init.service b/sys/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..ed515f4
--- /dev/null
+++ b/sys/etc/systemd/system/pacman-init.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Pacman keyring initialization
+ConditionDirectoryNotEmpty=!/etc/pacman.d/gnupg
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pacman-key --init
+ExecStart=/usr/bin/pacman-key --populate archlinux
+
+[Install]
+WantedBy=multi-user.target