Skip Navigation
Fedora Linux @lemmy.ml joojmachine @lemmy.ml

PSA: NVIDIA drivers and Secure Boot are not mutually exclusive anymore, and here's how to finally do it

blog.monosoul.dev Automatically sign NVidia Kernel module in Fedora 35 - Monosoul's Dev Blog

Here's how to automatically sign NVIDIA Kernel module in Fedora to make it more convenient to use with Secure Boot enabled.

Automatically sign NVidia Kernel module in Fedora 35 - Monosoul's Dev Blog

I've been using Fedora for the best part of 4 months now, and one of the only gripes I had with the distro is that there wasn't a way to automatically sign the NVIDIA kernel modules after each update, so users like me needed to either disable secure boot (which I could do, but didn't want to because I'm stubborn and managed to make it work in every other distro I used) or manually sign the kernel modules after each driver and kernel update (which I made easier with a small script, but it still required basically two reboots and a bit of time).

Not. Anymore.

The process is made dead simple with the signed versions of kmodtool and akmods provided by Elia's COPR repos. Just follow the guide and boom, you're done. It'll take less than 5 minutes.

The only catch is that, if you already have a kmod built for your kernel version you'll have to rebuild it or uninstall the NVIDIA drivers and then reinstall them, which will do the same thing.

And now for the news.

The process gets even simpler in Fedora 36!

The patches applied to these packages in the COPR repos are merged upstream and will (if all goes well) be there with 36's release (the related Bugzilla was closed for Rawhide last December, so all you'll need to do is generate, sign and enroll your keys and then move them to the right location before installing the NVIDIA drivers / rebuilding your kmod modules.

I decided to make this PSA because I literally found their blog post by accident after 4 months of looking for a way to do this, so at least now more people will be aware of it.

1
1 comments