Scriptlet output:
1 dracut[F]: Can’t write to /boot/efi/cb26d29a6269476dbc9854b519ce97da/6.8.7-300.fc40.x86_64: Directory /boot/efi/cb26d29a6269476dbc9854b519ce97da/6.8.7-300.fc40.x86_64 does not exist or is not accessible.
2 /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
3 warning: %posttrans(kernel-core-6.8.7-300.fc40.x86_64) scriptlet failed, exit status 1
4 dracut[F]: Can’t write to /boot/efi/cb26d29a6269476dbc9854b519ce97da/6.8.7-300.fc40.x86_64+debug: Directory /boot/efi/cb26d29a6269476dbc9854b519ce97da/6.8.7-300.fc40.x86_64+debug does not exist or is not accessible.
5 /usr/lib/kernel/install.d/50-dracut.install failed with exit status 1.
6 warning: %posttrans(kernel-debug-core-6.8.7-300.fc40.x86_64) scriptlet failed, exit status 1
Seems that dracut assumes this directory exists and it does not.
Maybe a workaround is to make sure it exists and run dracut again?
Of course that leaves the question of what went wrong in the first case unanswered.
It ends up in the wrong folder, rather on the root path of /boot it ends up in /boot/efi/cb26d29a6269476dbc9854b519ce97da/kernel_name where clearly it can’t be found on boot since the only bootable kernel i have left is on the root path of /boot/
ok, restored a backup of /boot from rescuezilla. For some reason it won’t compile a new initramfs or it compiles it in boot/efi/cb26d29a6269476dbc9854b519ce97da/kernel-name (if you manually create that folder first)
It looks like I should have asked you to run dnf list installed kernel*. It would appear from the files that are shown in /boot that you may have the kernel-debug package installed, which is only useful when asked to install it by the kernel developers for specific testing. The debug versions of files in /boot take a lot of space.
Please remove that package with sudo dnf remove kernel-debug\*
Doing so will remove all existing and will stop creating the -debug files in /boot and in most cases prevent filling that space up.
To be able to boot with any kernel other than the 6.8.5 you will have to reinstall the newer kernel
Use sudo dnf remove kernel*6.8.7* to remove all parts of that kernel.
Follow that with sudo dnf upgrade --refresh to upgrade the system, which should include installing the 6.8.7 kernel. You may need to add the --enablerepo updates-testing option to get that newer kernel. Once that completes properly then you should be able to boot to the 6.8.7 kernel.