Verified Commit ea4be702 authored by Amin Vakil's avatar Amin Vakil
Browse files

Add pacman_keyring init service

parent 1e521409
Pipeline #11885 passed with stage
in 46 seconds
......@@ -169,5 +169,13 @@
register: chroot_pacman_clean_cache
changed_when: "chroot_pacman_clean_cache.rc == 0"
- name: setup pacman-init.service on first boot
template:
src: pacman-init.service
dest: /etc/systemd/system/pacman-init.service
owner: root
group: root
mode: 0644
- name: remove LOCK file on mountpoint
file: path=/mnt/LOCK state=absent
[Unit]
Description=Initializes Pacman keyring
Before=sshd.service
ConditionFirstBoot=yes
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/pacman-key --init
ExecStart=/usr/bin/pacman-key --populate archlinux
[Install]
WantedBy=multi-user.target
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment