Dracut did not rebuild initramfs

After updating nvidia-dkms today, nvidia-smi showed Failed to initialize NVML: Driver/library version mismatch. After attempting to reinstall nvidia-dkms multiple times, I fixed it by running sudo dracut-rebuild. Seems like dracut did not trigger an initramfs rebuild even after removing the module and installing it back.

If an update doesn’t finish properly it won’t run the hooks at the end that regenerate the boot images.

Without seeing the output from the update, it is hard to understand what may have happened.

1 Like

hmmm nvidia-dkms will build modules and should not be directly need initramfs rebuild or i do miss something? as long as you do not include the modules inside the initramfs…
So it looks more like dkms was not rebuilding the modules properly or failed.

But anyway welcome here and lets solve your first puzzle :enos:

1 Like

will be this what was happen for sure…