Grub shows 1 Fedora 40 kernel entry, never the newest kernel

I can’t boot into the latest kernels in my F40 (upgraded from F39) installation as the grub menu only shows a single kernel for the install and its the kernel used in the previous boot - so it never updates

Multiple versions of Linux installed as well as Windows, all the others have the usual choice of the latest 3 kernels.

Doing a command line update of grub2 config doesn’t change things.

Added dual, f40, grub, multiboot

The 6.5.12 kernel is a very very old release on F39.

Please boot into fedora and show us the output of ls -R /boot
Also the output of dnf list installed kernel*
Post both those as preformatted text using the </> button on the toolbar on the text entry window.

The dnf result

Installed Packages
kernel.x86_64                             6.5.12-300.fc39               @updates
kernel.x86_64                             6.8.8-300.fc40                @updates
kernel.x86_64                             6.8.9-300.fc40                @updates
kernel-core.x86_64                        6.5.12-300.fc39               @updates
kernel-core.x86_64                        6.8.8-300.fc40                @updates
kernel-core.x86_64                        6.8.9-300.fc40                @updates
kernel-devel.x86_64                       6.5.12-300.fc39               @updates
kernel-devel.x86_64                       6.8.8-300.fc40                @updates
kernel-devel.x86_64                       6.8.9-300.fc40                @updates
kernel-devel-matched.x86_64               6.8.9-300.fc40                @updates
kernel-headers.x86_64                     6.8.3-300.fc40                @fedora 
kernel-modules.x86_64                     6.5.12-300.fc39               @updates
kernel-modules.x86_64                     6.8.8-300.fc40                @updates
kernel-modules.x86_64                     6.8.9-300.fc40                @updates
kernel-modules-core.x86_64                6.5.12-300.fc39               @updates
kernel-modules-core.x86_64                6.8.8-300.fc40                @updates
kernel-modules-core.x86_64                6.8.9-300.fc40                @updates
kernel-modules-extra.x86_64               6.5.12-300.fc39               @updates
kernel-modules-extra.x86_64               6.8.8-300.fc40                @updates
kernel-modules-extra.x86_64               6.8.9-300.fc40                @updates
kernel-srpm-macros.noarch                 1.0-23.fc40                   @fedora 

The ls -R results:

/boot:
config-6.5.12-300.fc39.x86_64
efi
grub2
initramfs-0-rescue-292c4cc89d214431b347405da05a8f2e.img
initramfs-6.5.12-300.fc39.x86_64.img
loader
symvers-6.5.12-300.fc39.x86_64.xz
symvers-6.8.8-300.fc40.x86_64.xz
System.map-6.5.12-300.fc39.x86_64
vmlinuz-0-rescue-292c4cc89d214431b347405da05a8f2e
vmlinuz-6.5.12-300.fc39.x86_64

/boot/efi:
292c4cc89d214431b347405da05a8f2e
EFI
loader
mach_kernel
System

/boot/efi/292c4cc89d214431b347405da05a8f2e:
0-rescue
6.8.8-300.fc40.x86_64
6.8.9-300.fc40.x86_64

/boot/efi/292c4cc89d214431b347405da05a8f2e/0-rescue:
initrd
linux

/boot/efi/292c4cc89d214431b347405da05a8f2e/6.8.8-300.fc40.x86_64:
initrd
linux

/boot/efi/292c4cc89d214431b347405da05a8f2e/6.8.9-300.fc40.x86_64:

/boot/efi/EFI:
BOOT
dragonfly
fedora
Linux
Microsoft
nixos
rawhide
systemd
ubuntu

/boot/efi/EFI/BOOT:
BOOTIA32.EFI
BOOTX64.EFI
fbia32.efi
fbx64.efi
mmx64.efi

/boot/efi/EFI/dragonfly:
dragonfly_x64.efi

/boot/efi/EFI/fedora:
BOOTIA32.CSV
BOOTX64.CSV
gcdia32.efi
gcdx64.efi
grub.cfg
grubia32.efi
grubx64.efi
mmia32.efi
mmx64.efi
shim.efi
shimia32.efi
shimx64.efi

/boot/efi/EFI/Linux:

/boot/efi/EFI/Microsoft:
Boot
Recovery

/boot/efi/EFI/Microsoft/Boot:
BCD
BCD.LOG
BCD.LOG1
BCD.LOG2
bg-BG
bootmgfw.efi
bootmgr.efi
BOOTSTAT.DAT
boot.stl
CIPolicies
cs-CZ
da-DK
de-DE
el-GR
en-GB
en-US
es-ES
es-MX
et-EE
fi-FI
Fonts
fr-CA
fr-FR
hr-HR
hu-HU
it-IT
ja-JP
kd_02_10df.dll
kd_02_10ec.dll
kd_02_1137.dll
kd_02_14e4.dll
kd_02_15b3.dll
kd_02_1969.dll
kd_02_19a2.dll
kd_02_1af4.dll
kd_02_8086.dll
kd_07_1415.dll
kd_0C_8086.dll
kdnet_uart16550.dll
kdstub.dll
ko-KR
lt-LT
lv-LV
memtest.efi
nb-NO
nl-NL
pl-PL
pt-BR
pt-PT
qps-ploc
Resources
ro-RO
ru-RU
SecureBootRecovery.efi
sk-SK
sl-SI
sr-Latn-RS
sv-SE
tr-TR
uk-UA
winsipolicy.p7b
zh-CN
zh-TW

/boot/efi/EFI/Microsoft/Boot/bg-BG:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/CIPolicies:
Active

/boot/efi/EFI/Microsoft/Boot/CIPolicies/Active:
{5DAC656C-21AD-4A02-AB49-649917162E70}.cip
{82443e1e-8a39-4b4a-96a8-f40ddc00b9f3}.cip
{CDD5CB55-DB68-4D71-AA38-3DF2B6473A52}.cip

/boot/efi/EFI/Microsoft/Boot/cs-CZ:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/da-DK:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/de-DE:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/el-GR:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/en-GB:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/en-US:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/es-ES:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/es-MX:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/et-EE:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/fi-FI:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/Fonts:
chs_boot.ttf
cht_boot.ttf
jpn_boot.ttf
kor_boot.ttf
malgun_boot.ttf
malgunn_boot.ttf
meiryo_boot.ttf
meiryon_boot.ttf
msjh_boot.ttf
msjhn_boot.ttf
msyh_boot.ttf
msyhn_boot.ttf
segmono_boot.ttf
segoen_slboot.ttf
segoe_slboot.ttf
wgl4_boot.ttf

/boot/efi/EFI/Microsoft/Boot/fr-CA:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/fr-FR:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/hr-HR:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/hu-HU:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/it-IT:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/ja-JP:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/ko-KR:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/lt-LT:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/lv-LV:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/nb-NO:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/nl-NL:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pl-PL:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pt-BR:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/pt-PT:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/qps-ploc:
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/Resources:
bootres.dll
en-US

/boot/efi/EFI/Microsoft/Boot/Resources/en-US:
bootres.dll.mui

/boot/efi/EFI/Microsoft/Boot/ro-RO:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/ru-RU:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/sk-SK:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sl-SI:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sr-Latn-RS:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/sv-SE:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/tr-TR:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/uk-UA:
bootmgfw.efi.mui
bootmgr.efi.mui

/boot/efi/EFI/Microsoft/Boot/zh-CN:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Boot/zh-TW:
bootmgfw.efi.mui
bootmgr.efi.mui
memtest.efi.mui

/boot/efi/EFI/Microsoft/Recovery:
BCD
BCD.LOG
BCD.LOG1
BCD.LOG2

/boot/efi/EFI/nixos:
9m7yvmihc2jclnb4xyq9agai87bgjxm2-initrd-linux-6.1.47-initrd.efi
pks9k6yzwscbp5hs9h1w5vw0qgnjgwm9-initrd-linux-6.1.63-initrd.efi
ppd1hk8zig4p0dgjn7i1dhlplgvgajq7-linux-6.1.63-bzImage.efi
q2dbyhx1mhhpjc3d35s32izcfz8q6vcn-linux-6.1.47-bzImage.efi

/boot/efi/EFI/rawhide:
BOOTIA32.CSV
BOOTX64.CSV
gcdia32.efi
gcdx64.efi
grub.cfg
grubia32.efi
grubx64.efi
mmia32.efi
mmx64.efi
shim.efi
shimia32.efi
shimx64.efi

/boot/efi/EFI/systemd:
systemd-bootx64.efi

/boot/efi/EFI/ubuntu:
BOOTX64.CSV
grub.cfg
grubx64.efi
mmx64.efi
shimx64.efi

/boot/efi/loader:
entries
entries.srel
loader.conf
random-seed

/boot/efi/loader/entries:
292c4cc89d214431b347405da05a8f2e-0-rescue.conf
292c4cc89d214431b347405da05a8f2e-6.8.8-300.fc40.x86_64.conf
nixos-generation-1.conf
nixos-generation-2.conf
nixos-generation-3.conf
nixos-generation-4.conf
nixos-generation-5.conf
nixos-generation-6.conf
nixos-generation-7.conf
nixos-generation-8.conf

/boot/efi/System:
Library

/boot/efi/System/Library:
CoreServices

/boot/efi/System/Library/CoreServices:
SystemVersion.plist

/boot/grub2:
fonts
grub.cfg
grubenv

/boot/grub2/fonts:
unicode.pf2

/boot/loader:
entries

/boot/loader/entries:
292c4cc89d214431b347405da05a8f2e-0-rescue.conf
292c4cc89d214431b347405da05a8f2e-6.5.12-300.fc39.x86_64.conf
type or paste code here

At closer look, it looks like you might have some other distribution booted by systemd-boot. In that case Fedora should also be bootable using systemd-boot.

There you go. You should remove the directory /boot/efi/292c4cc89d214431b347405da05a8f2e. Then run

sudo kernel-install add-all

That should fix up the grub2 configuration files.

Wait. You also have these files they must also be removed before running kernel-install.

Whar are all these apart from the BOOT, fedora, and Microsoft entry.
Maybe it is best to leave everything alone until this is sorted out.

Thank you.

Followed the instructions above and I know have the expected 3 kernels listed.