diff options
| author | Ahmed Abdelhalim <[email protected]> | 2026-04-23 00:43:45 +0200 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2026-04-23 00:43:45 +0200 |
| commit | 691d9a21678a44cb73dfcb295a50e17a013546d4 (patch) | |
| tree | fbf35cae2220383c70840e91b08bd8e4b0924267 /roles/bootstrap/tasks/install-archlinux-mac.yml | |
| parent | 30eb7447283d6f8a59f081a5b75a8ced3590b44e (diff) | |
Refactor bootstrap with mac support
Diffstat (limited to 'roles/bootstrap/tasks/install-archlinux-mac.yml')
| -rw-r--r-- | roles/bootstrap/tasks/install-archlinux-mac.yml | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/roles/bootstrap/tasks/install-archlinux-mac.yml b/roles/bootstrap/tasks/install-archlinux-mac.yml index ebf8059..26ae9ee 100644 --- a/roles/bootstrap/tasks/install-archlinux-mac.yml +++ b/roles/bootstrap/tasks/install-archlinux-mac.yml @@ -1,53 +1,4 @@ --- -# Apple EFI 1.x does not expose ext4 volumes via SimpleFileSystem, so the -# kernel must live on the FAT32 EFI partition where rEFInd already scans \boot\. -- name: "Ensure boot directory exists on EFI partition" - ansible.builtin.file: - path: "{{ mnt_boot_path }}/boot" - state: directory - mode: "0755" - -- name: "Copy kernel to EFI partition" - ansible.builtin.copy: - src: "{{ mnt_root_path }}/boot/{{ item }}" - dest: "{{ mnt_boot_path }}/boot/{{ item }}" - remote_src: true - mode: "0644" - loop: - - "vmlinuz-linux" - - "initramfs-linux.img" - -- name: "Configure rEFInd boot options on EFI partition" - ansible.builtin.template: - src: "refind_linux.conf.j2" - dest: "{{ mnt_boot_path }}/boot/refind_linux.conf" - mode: "0644" - -- name: "Install kernel sync script for EFI partition" - ansible.builtin.copy: - dest: "{{ mnt_root_path }}/usr/local/bin/refind-sync-kernel" - mode: "0755" - content: | - #!/bin/sh - cp /boot/vmlinuz-linux /boot/efi/boot/ - cp /boot/initramfs-linux.img /boot/efi/boot/ - -- name: "Override pacman hook to sync kernel to EFI partition" - ansible.builtin.copy: - dest: "{{ mnt_root_path }}/etc/pacman.d/100-refind.hook" - mode: "0644" - content: | - [Trigger] - Type = Package - Operation = Install - Operation = Upgrade - Target = linux - - [Action] - Description = Syncing kernel to EFI partition after kernel update - When = PostTransaction - Exec = /usr/local/bin/refind-sync-kernel - - name: "Install broadcom-wl driver" ansible.builtin.command: cmd: "arch-chroot {{ mnt_root_path }} pacman -S --noconfirm broadcom-wl" |
