Kernel Update issues 38->40

Hello:
I found my home fedora workstation was out of date on Fedora 38, and wanted to update it to current. According to the dnf system-upgrade instructions, I can only jump 2 versions, so I upgraded to 40. Once all looks good, I’ll upgrade again to 41.

The upgrade went mostly-ok, except I noticed its still running on an fc38 kernel, not the fc40 one. I’ve found a few issues like a very old, broke nvidia kernel module (i pulled my nvidia card out well over a year ago and uninstalled all the driver stuff, but dkms was still trying to install it, etc). But I have one major issue left: for some reason, the new fc40 kernel (which rpm reports as installed) will not place its kernel in /boot, thus Grub only sees the old fc38 kernel.

Here’s some (hopefully helpful) output:

[root@plexus boot]# ls
config-6.8.9-100.fc38.x86_64
efi
extlinux
grub2
initramfs-0-rescue-b0bef76de1274a9b97f8b4b840d2ece1.img
initramfs-6.8.9-100.fc38.x86_64.img
initrd-plymouth.img
loader
lost+found
symvers-6.8.9-100.fc38.x86_64.xz
System.map-6.8.9-100.fc38.x86_64
vmlinuz-0-rescue-b0bef76de1274a9b97f8b4b840d2ece1
vmlinuz-6.8.9-100.fc38.x86_64
[root@plexus boot]# rpm -qa |grep kernel
kernel-modules-core-6.8.9-100.fc38.x86_64
kernel-core-6.8.9-100.fc38.x86_64
kernel-modules-6.8.9-100.fc38.x86_64
kernel-devel-6.8.9-100.fc38.x86_64
kernel-modules-extra-6.8.9-100.fc38.x86_64
kernel-headers-6.11.3-200.fc40.x86_64
kernel-tools-libs-6.11.11-200.fc40.x86_64
kernel-srpm-macros-1.0-23.fc40.noarch
kernel-modules-core-6.11.11-200.fc40.x86_64
kernel-modules-6.11.11-200.fc40.x86_64
kernel-modules-extra-6.11.11-200.fc40.x86_64
libreport-plugin-kerneloops-2.17.15-1.fc40.x86_64
kernel-devel-6.11.11-200.fc40.x86_64
kernel-devel-matched-6.11.11-200.fc40.x86_64
texlive-l3kernel-svn66094-71.fc40.noarch
abrt-addon-kerneloops-2.17.6-1.fc40.x86_64
kernel-6.11.11-200.fc40.x86_64
kernel-core-6.11.11-200.fc40.x86_64

When I tried to reinstall kernel-core, I do get an error that I have not been able to figure out how to fix. It looks like something may be looking to a different filesystem layout than is used:

[root@plexus ~]# dnf reinstall kernel-core
Last metadata expiration check: 0:07:54 ago on Sun 15 Dec 2024 03:25:20 PM PST.
Dependencies resolved.
========================================================================================================================================
 Package                          Architecture                Version                                Repository                    Size
========================================================================================================================================
Reinstalling:
 kernel-core                      x86_64                      6.11.11-200.fc40                       updates                       18 M

Transaction Summary
========================================================================================================================================

Total download size: 18 M
Installed size: 71 M
Is this ok [y/N]: y
Downloading Packages:
kernel-core-6.11.11-200.fc40.x86_64.rpm                                                                 3.3 MB/s |  18 MB     00:05    
----------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                   2.9 MB/s |  18 MB     00:06     
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                1/1 
  Reinstalling     : kernel-core-6.11.11-200.fc40.x86_64                                                                            1/2 
  Running scriptlet: kernel-core-6.11.11-200.fc40.x86_64                                                                            1/2 
  Running scriptlet: kernel-core-6.11.11-200.fc40.x86_64                                                                            2/2 
  Cleanup          : kernel-core-6.11.11-200.fc40.x86_64                                                                            2/2 
  Running scriptlet: kernel-core-6.11.11-200.fc40.x86_64                                                                            2/2 
/usr/lib/kernel/install.d/51-dracut-rescue.install: line 91: /boot/efi/loader/entries/b0bef76de1274a9b97f8b4b840d2ece1-0-rescue.conf: No such file or directory
/usr/lib/kernel/install.d/51-dracut-rescue.install failed with exit status 1.
warning: %posttrans(kernel-core-6.11.11-200.fc40.x86_64) scriptlet failed, exit status 1

Error in POSTTRANS scriptlet in rpm package kernel-core

Reinstalled:
  kernel-core-6.11.11-200.fc40.x86_64                                                                                                   

Complete!

How do I fix this?

I tried to paste in the fpaste info as requested, but the post errored out as too long. The fpaste was quite long…but if someone wants it, I’ll get it here somehow (or you can tell me how you want it…).

Thanks in advance!

Please show us the output of sudo ls -R /boot
It seems that for some reason this path is incorrect. It should be /boot/loader and not /boot/efi/loader.

Also please show us the result of sudo cat /boot/efi/EFI/fedora/grub.cfg

Are you booting with grub as the default or have you possibly installed systemd boot