OSDN Git Service

[add] : pacman-init
authorhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 00:07:05 +0000 (09:07 +0900)
committerhayao <shun819.mail@gmail.com>
Thu, 20 Aug 2020 00:07:05 +0000 (09:07 +0900)
channels/share/airootfs.any/etc/systemd/system/pacman-init.service [new file with mode: 0644]

diff --git a/channels/share/airootfs.any/etc/systemd/system/pacman-init.service b/channels/share/airootfs.any/etc/systemd/system/pacman-init.service
new file mode 100644 (file)
index 0000000..2ca8ffd
--- /dev/null
@@ -0,0 +1,16 @@
+[Unit]
+Description=Initializes Pacman keyring
+Wants=haveged.service
+After=haveged.service
+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/pacman-key --populate archlinux
+ExecStart=/usr/bin/pacman-key --populate alterlinux
+
+[Install]
+WantedBy=multi-user.target
\ No newline at end of file