aboutsummaryrefslogtreecommitdiff
path: root/archiso_config/airootfs/etc
diff options
context:
space:
mode:
Diffstat (limited to 'archiso_config/airootfs/etc')
-rw-r--r--archiso_config/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount8
-rw-r--r--archiso_config/airootfs/etc/systemd/system/pacman-init.service15
2 files changed, 23 insertions, 0 deletions
diff --git a/archiso_config/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount b/archiso_config/airootfs/etc/systemd/system/etc-pacman.d-gnupg.mount
new file mode 100644
index 0000000..038961e
--- /dev/null
+++ b/archiso_config/airootfs/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,noswap
diff --git a/archiso_config/airootfs/etc/systemd/system/pacman-init.service b/archiso_config/airootfs/etc/systemd/system/pacman-init.service
new file mode 100644
index 0000000..b824884
--- /dev/null
+++ b/archiso_config/airootfs/etc/systemd/system/pacman-init.service
@@ -0,0 +1,15 @@
+[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