(Fedora 40) "Nvidia kernel module missing, falling back to nouveau"

As much as possible I prefer to recommend only fedora guides.
Please refrain from going off-topic.

sudo grubby --set-default-index 0

The other way I personally prefer is to use the path to the vmlinuz file:

sudo grubby --set-default=/boot/vmlinuz-6.8.12-300.fc40.x86_64

that way there’s no need to dig around for the index integer for the kernel

This command has one big issue.
It sets that kernel as the default and it never will change until you do so manually.

Using the earlier command to set the default by the index 0 will always use the newest kernel installed as the default for booting since the newest kernel should always appear at index 0 in the menu.

1 Like