diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:30 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:30 +0200 |
| commit | e63535c7a678565b966c6cea96a8fb20aca59026 (patch) | |
| tree | af87eed9402b44b09e1be86f95ece2ece6082a43 /roles/bootstrap/tasks | |
| parent | d56f81f6d043cb6df7eb9fa01acae2678ff084ec (diff) | |
Use /mnt/boot/efi because it's easier on debian
Diffstat (limited to 'roles/bootstrap/tasks')
| -rw-r--r-- | roles/bootstrap/tasks/install-archlinux.yml | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml index 1e4771a..5c746a8 100644 --- a/roles/bootstrap/tasks/install-archlinux.yml +++ b/roles/bootstrap/tasks/install-archlinux.yml @@ -36,6 +36,34 @@ - src: "archlinux.conf.j2" dest: "{{ mnt_boot_path }}/loader/entries/archlinux.conf" +- name: "Copy kernel to efi partition" + ansible.builtin.copy: + src: "{{ item }}" + dest: "{{ mnt_boot_path }}" + remote_src: true + mode: "0644" + with_items: + - "{{ mnt_root_path }}/boot/vmlinuz-linux" + - "{{ mnt_root_path }}/boot/initramfs-linux.img" + - "{{ mnt_root_path }}/boot/initramfs-linux-fallback.img" + +- name: "Configure pacman hook for updating kernel" + ansible.builtin.copy: + dest: "{{ mnt_root_path }}/etc/pacman.d/100-systemd-boot.hook" + mode: "0644" + content: | + [Trigger] + Type = Package + Operation = Upgrade + Target = linux + + [Action] + Description = Updating systemd-boot + When = PostTransaction + Exec = /usr/bin/cp /boot/vmlinuz-linux /boot/efi/vmlinuz-linux + Exec = /usr/bin/cp /boot/initramfs-linux.img /boot/efi/initramfs-linux.img + Exec = /usr/bin/cp /boot/initramfs-linux-fallback.img /boot/efi/initramfs-linux-fallback.img + - name: "Configure hostname in chroot" ansible.builtin.copy: dest: "{{ mnt_root_path }}/etc/hostname" |
