summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2026-07-13 17:12:04 +0200
committerAhmed Abdelhalim <[email protected]>2026-07-14 01:23:12 +0200
commit35a4c130750a5bc29655c1767701626ba898b70d (patch)
tree842212ddb71b1c25273b87ca35ab6370956dc1a5
parentfbce424d77021f6d956d7fe7c36fbacf08615034 (diff)
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!
-rw-r--r--roles/nvidia_gt750m/handlers/main.yml9
-rw-r--r--roles/nvidia_gt750m/tasks/install-archlinux.yml15
2 files changed, 10 insertions, 14 deletions
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"