diff options
| author | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:31 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2025-08-11 00:33:31 +0200 |
| commit | c170141cfb2a59b5057c37ee0a8b4b3f8384ec3f (patch) | |
| tree | 0b4c2fa0e8a45f3e9b62fc8f06868dc4e7da5e56 /roles/bootstrap/tasks | |
| parent | e63535c7a678565b966c6cea96a8fb20aca59026 (diff) | |
Safe dualboot /efi folder structure
Diffstat (limited to 'roles/bootstrap/tasks')
| -rw-r--r-- | roles/bootstrap/tasks/install-archlinux.yml | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux.yml b/roles/bootstrap/tasks/install-archlinux.yml index 5c746a8..c467be8 100644 --- a/roles/bootstrap/tasks/install-archlinux.yml +++ b/roles/bootstrap/tasks/install-archlinux.yml @@ -36,12 +36,18 @@ - src: "archlinux.conf.j2" dest: "{{ mnt_boot_path }}/loader/entries/archlinux.conf" +- name: "Create distro kernel directory" + ansible.builtin.file: + path: "{{ mnt_boot_path }}/archlinux" + state: "directory" + mode: "0700" + - name: "Copy kernel to efi partition" ansible.builtin.copy: src: "{{ item }}" - dest: "{{ mnt_boot_path }}" + dest: "{{ mnt_boot_path }}/archlinux/" remote_src: true - mode: "0644" + mode: "0700" with_items: - "{{ mnt_root_path }}/boot/vmlinuz-linux" - "{{ mnt_root_path }}/boot/initramfs-linux.img" @@ -60,9 +66,9 @@ [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 + Exec = /usr/bin/cp /boot/vmlinuz-linux /boot/efi/archlinux/vmlinuz-linux + Exec = /usr/bin/cp /boot/initramfs-linux.img /boot/efi/archlinux/initramfs-linux.img + Exec = /usr/bin/cp /boot/initramfs-linux-fallback.img /boot/efi/archlinux/initramfs-linux-fallback.img - name: "Configure hostname in chroot" ansible.builtin.copy: |
