Kernel updates don't create initramfs

Since a while, after each kernel update I can’t boot with the latest kernel. I get any error message, eg:

error: …/…/grub-core/fs/fshelp.c:257:file ‘/initramfs-6.12.6-200.fc41.x86_64.img’ not found
Press any key to continue…

followed by a kernel panic.
I’m able to boot with an older kernel, but afterwards I always have to recreate initiramfs with

sudo dracut --kver 6.12.6-200.fc41.x86_64 --force 

If I remember it correctly, the issue started with Kernel 6.12.4. I expected a one-time failure, but know I face the same boot failure with every single kernel update.

Does anyone have an idea what is preventing the initramfs from being created?
Are there any logs for this early boot stage? I didn’t find any yet.

1 Like

Hi and welcome to :fedora:

You may want to read through, Intramfs not being generated after kernel updates - #8 by barryascott

There’s an update in testing for this.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-1aca8cabcd

1 Like

Apparently this failure only occurs on some systems. I have not been affected by this to date and have updated with every kernel release since 6.12 was released.

If the error is caused by a failing dkms, you only get it if you install some kernel modules which uses dkms instead of akmods to create the kernel module. For example nvidia from the nvidia site or VirtualBox from the VirtualBox site.

There have been several threads in this forum about this issue which points to dkms as the likely cause of the problem. It has also been reported that the problem has a solution which would be released real soon now.

1 Like

In that case I am very glad that I never have needed dkms. :smirk:

Thanks for your help of and thanks for your link. That was very helpful. Now I understand the problem. Interesting that a search for ‘initramfs’ didn’t show this thread.
With

dkms status

I found the cause. The EVDI DisplayLink driver is broken. I hope an update will fix this issue.

Does anyone have an answer to this question?

dmesg is all I can suggest - if it’s not in there then I’m not sure where else one could look.