From ffc43bc0411c71f84fa1c7e52204c2b20e311429 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Wed, 15 Sep 2021 22:17:30 +0200 Subject: 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. --- profiles/xorg.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'profiles/xorg.py') 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: -- cgit v1.2.3-54-g00ecf