Hello peeps, I am having a problem after doing some updates.
Context
I usually do updates every Saturday. It was after May 10, 2025 that this problem started to occur for me. I do just the normal flatpak update and then sudo dnf update.
The Problem
After May 10, 2025 I started to have a Kernel Panic error every time I turn on or reboot my laptop. Thankfully I just reboot and select the previous Fedora 42 kernel version (6.14.4-300.fc42.x86_64) via GRUB. The problem seems to be occurring on just kernel version 6.14.5-300.fc42.x86_64 since it is the default boot now, plus every time I select it manually it does a Kernel Panic
EDIT
I forgot to include the error stack trace: error: ../../grub-core/fs/fshelp.c:257:file '/initramfs-6.14.5-300.fc42.x86_64.img' not found
Potential Solutions
I found a discussion which had a similar problem. However, after trying their fix suggestions I could not solve the problem.
System Details Report
Report details
Date generated: 2025-05-12 10:06:52
Hardware Information:
Hardware Model: HP HP Laptop 14-dq2xxx
Memory: 8.0 GiB
Processor: 11th Gen Intel® Core™ i3-1125G4 × 8
That is not a kernel panic. This is a error message from grub.
I am going to guess that you use dkms or akmods to build kernel modules. Must likely the dkms/akmods build is failing.
When it fails other people report initramfs will not be created.
You can tell dracut to build the initramfs that is missing and I think you will see an error messasge.
When a new kernel is released it is common the out of tree kernel modules can fail to build until the source is updated.
I will check this out. That said, the kernel panic screen appears after that error message. I admit I am not a linux professional and I currently don’t build kernel modules; I just use Fedora Workstation as a normal user. So, idk if those two things (the grub error and the kernel panic) are related.
Correct, I solved it using the solution for this discussion. I didn’t do it with the correct kernel version before, so it seemed like it didn’t worked; but it does