build for specific kernel version

This commit is contained in:
Anders Rytter Hansen 2023-09-16 11:47:05 +02:00
commit 4a5a2791a8
2 changed files with 12 additions and 4 deletions

5
akmods.sh Executable file
View file

@ -0,0 +1,5 @@
#!/bin/sh
KERNEL_VERSION="$(rpm -q kernel-cachyos-lts --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
akmods --force --kernels "${KERNEL_VERSION}" --kmod "nvidia"