-
Notifications
You must be signed in to change notification settings - Fork 1.4k
prefer dkms ${kernelver} over uname -r resolves #791 #792
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Thanks for the proposed change, @josephtingiris . But, isn't mapping from dkms' In fact, it looks like dkms.conf already does Is that not working for some reason in your configuration? |
No, that dkms.conf doesn't work and I noted why, here: NVIDIA/yum-packaging-nvidia-driver#10 (comment) IMO, the Makefile change is a way to keep the logic & functionality contained & maintained in a single location. There are already multiple dkms.conf files in play (also noted in the link above). Keep it simple. The logic I added will preserve backward compatibility. $KERNEL_UNAME from the environment will still be honored and take precedence unless $kernelver is also present. If both are present then it tests for equality and will error if they don't match (which is how I found the issue to begin with). That seems more apropos. I thought it was better/safer behavior for make to error than to compile a module that fails to load on the next reboot (and renders the system significantly less useful without its gui). In my testing, the modules compile just fine but the version magic doesn't match. That's why it won't load. |
I'm sorry, but the Makefile here isn't dkms-aware, and I don't believe it should be dkms-aware. If there are problems with dkms.conf, let's please fix that. |
No need. Happy to help if I can. I previously outlined fixing dkms.conf in the packaging repo, too. Those repos are quite dated. The kernel-open/dkms.conf that's in this repo looks like a template for something else. It's also 3 years old. By itself, it doesn't function. Though it could easily be made to. I see other bits of dkms in here, too, though not in the Makefile. Are you implying the dkms.conf here get fixed? Also, I searched and reviewed all of https://github.com/search?q=org%3ANVIDIA%20dkms.conf&type=code and the dkms.conf that's included in the rpm doesn't match any of them. I also searched for matching content and can't find it. I'll keep looking but I'm not sure how one would effect a change to that particular dkms.conf. I guess it's in a private repo. Thanks for your time. |
Yes you're right. It's a template from the NVIDIA runfile. The runfile will update At least in Arch, they're making the modifications during the packaging stage so [1] dkms.conf patching for the closed kernel modules |
No description provided.