From 35a4c130750a5bc29655c1767701626ba898b70d Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Mon, 13 Jul 2026 17:12:04 +0200 Subject: Initial change, to make the role match the nvidia gtx 1060 Since the mac driver is still broken when connected to external monitors, this is yet another attempt at fixing the pleasantly apple quirky wifi and graphics to work on linux! --- roles/nvidia_gt750m/handlers/main.yml | 9 ++++++++- roles/nvidia_gt750m/tasks/install-archlinux.yml | 15 ++------------- 2 files changed, 10 insertions(+), 14 deletions(-) (limited to 'roles') diff --git a/roles/nvidia_gt750m/handlers/main.yml b/roles/nvidia_gt750m/handlers/main.yml index 82a77422..fe712ed7 100644 --- a/roles/nvidia_gt750m/handlers/main.yml +++ b/roles/nvidia_gt750m/handlers/main.yml @@ -1,9 +1,16 @@ --- -- name: "Run mkinitcpio" +- name: "Rebuild initramfs" become: true ansible.builtin.command: cmd: "mkinitcpio -P" changed_when: true + notify: "Sync kernel to EFI partition" + +- name: "Sync kernel to EFI partition" + become: true + ansible.builtin.command: + cmd: "/usr/local/bin/refind-sync-kernel" + changed_when: true - name: "Run update-initramfs" become: true diff --git a/roles/nvidia_gt750m/tasks/install-archlinux.yml b/roles/nvidia_gt750m/tasks/install-archlinux.yml index aacb58cb..69f29229 100644 --- a/roles/nvidia_gt750m/tasks/install-archlinux.yml +++ b/roles/nvidia_gt750m/tasks/install-archlinux.yml @@ -14,18 +14,7 @@ dest: "/etc/modprobe.d/nvidia.conf" mode: "0644" notify: - - "Run mkinitcpio" - tags: - - "molecule-notest" - -- name: "Remove kms hook from mkinitcpio" - become: true - ansible.builtin.replace: - path: "/etc/mkinitcpio.conf" - regexp: "(HOOKS=\\([^)]*) kms" - replace: '\1' - notify: - - "Run mkinitcpio" + - "Rebuild initramfs" tags: - "molecule-notest" @@ -52,6 +41,6 @@ regexp: "^MODULES=\\(.*\\)" line: "MODULES=({{ all_modules | join(' ') }})" notify: - - "Run mkinitcpio" + - "Rebuild initramfs" tags: - "molecule-notest" -- cgit v1.2.3