Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Hvornum <anton@hvornum.se>2021-09-15 22:17:30 +0200
committerAnton Hvornum <anton@hvornum.se>2021-09-15 22:17:30 +0200
commitffc43bc0411c71f84fa1c7e52204c2b20e311429 (patch)
treeed3e9f28dfb65e2a5759799df13aa4206c6bf330
parent9e67ce3f05bb813c997c3c2bc874c4d6ed83c5d6 (diff)
Adding linux -headers for nvidia-dkms
This should address #585, as I don't see any nvidia-dkms other than when linux-zen and linux-lts is chosen, I chose to put the -headers logic in the same section. If this is needed for vanilla `linux` kernel as well, then move the logic one line up.
-rw-r--r--profiles/xorg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/profiles/xorg.py b/profiles/xorg.py
index ce13664d..b8f33068 100644
--- a/profiles/xorg.py
+++ b/profiles/xorg.py
@@ -39,6 +39,8 @@ if __name__ == 'xorg':
try:
if "nvidia" in archinstall.storage.get("gfx_driver_packages", None):
if "linux-zen" in archinstall.storage['installation_session'].base_packages or "linux-lts" in archinstall.storage['installation_session'].base_packages:
+ for kernel in archinstall.storage['installation_session'].kernels:
+ archinstall.storage['installation_session'].add_additional_packages(f"{kernel}-headers") # Fixes https://github.com/archlinux/archinstall/issues/585
archinstall.storage['installation_session'].add_additional_packages("dkms") # I've had kernel regen fail if it wasn't installed before nvidia-dkms
archinstall.storage['installation_session'].add_additional_packages("xorg-server xorg-xinit nvidia-dkms")
else: