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

enable pacman-init service

parent ea4be702
Pipeline #11886 passed with stage
in 35 seconds
......@@ -150,8 +150,16 @@
register: chroot_grub_mkconfig
changed_when: "chroot_grub_mkconfig.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: enable services inside chroot
command: chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved fstrim.timer
command: chroot /mnt systemctl enable sshd systemd-networkd systemd-resolved fstrim.timer pacman-init
register: chroot_systemd_services
changed_when: "chroot_systemd_services.rc == 0"
......@@ -169,13 +177,5 @@
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
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