File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Trixie/config/includes.chroot_after_packages/etc/trios Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -100,6 +100,14 @@ if $HAS_INTEL; then install_intel; fi
100100if $HAS_AMD ; then install_amd; fi
101101if $HAS_NVIDIA ; then install_nvidia; fi
102102
103+ # ─── Kernel Header + DKMS Rebuild (All GPUs) ─────────────────
104+ echo " [*] Ensuring kernel headers and DKMS modules are up to date..."
105+ apt-get install -y --install-recommends linux-headers-$( uname -r) dkms
106+
107+ # Rebuild all DKMS modules (important for NVIDIA / hybrid systems)
108+ echo " [*] Rebuilding DKMS modules..."
109+ dkms autoinstall || echo " [!] DKMS build reported issues (check logs under /var/lib/dkms)."
110+
103111# ─── Hybrid Handling ─────────────────────────────────────────
104112if ($HAS_NVIDIA && $HAS_INTEL ) || ($HAS_NVIDIA && $HAS_AMD ) || ($HAS_AMD && $HAS_INTEL ); then
105113 configure_hybrid
You can’t perform that action at this time.
0 commit comments