summaryrefslogtreecommitdiff
path: root/configs/profile/root-image/etc/systemd
diff options
context:
space:
mode:
authorEsteban Carnevale <alfplayer@mailoo.org>2013-09-02 20:03:36 -0300
committerEsteban Carnevale <alfplayer@mailoo.org>2013-09-02 20:03:36 -0300
commit7105fb70073c08d24b36dc48e5673ba39d3434ac (patch)
treeef87cf8a988d4a714cd99e542e2c952fa4635ac9 /configs/profile/root-image/etc/systemd
parent654d8bba202b0a1827a652d5f2c9979f0814ad6a (diff)
Leave only directory for profile releng
Diffstat (limited to 'configs/profile/root-image/etc/systemd')
-rw-r--r--configs/profile/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--configs/profile/root-image/etc/systemd/system/pacman-init.service16
2 files changed, 24 insertions, 0 deletions
diff --git a/configs/profile/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount b/configs/profile/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..4eab551
--- /dev/null
+++ b/configs/profile/root-image/etc/systemd/system/etc-pacman.d-gnupg.mount
@@ -0,0 +1,8 @@
+[Unit]
+Description=Temporary /etc/pacman.d/gnupg directory
+
+[Mount]
+What=tmpfs
+Where=/etc/pacman.d/gnupg
+Type=tmpfs
+Options=mode=0755
diff --git a/configs/profile/root-image/etc/systemd/system/pacman-init.service b/configs/profile/root-image/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..3414ebc
--- /dev/null
+++ b/configs/profile/root-image/etc/systemd/system/pacman-init.service
@@ -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 parabola
+
+[Install]
+WantedBy=multi-user.target