My problem seems to be quite similar as this one : Kernel update not applying but the topic is quite old and I’ve already tried a few things without success.
On one of VMs (only one impacted by this), I’m not seeing the newer Kernel in boot menu and the command grub2-mkconfig -o /boot/grub2/grub.cfg didn’t fix the issue.
yum check-update
Last metadata expiration check: 0:08:47 ago on Tue Jan 10 12:53:30 2023.
Security: kernel-core-4.18.0-425.3.1.el8.x86_64 is an installed security update
Security: kernel-core-4.18.0-372.32.1.el8_6.x86_64 is the currently running version
/boot/efi/EFI/almalinux/grub.cfg-#
/boot/efi/EFI/almalinux/grub.cfg:# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
/boot/efi/EFI/almalinux/grub.cfg-# populates the boot menu. Please refer to the Boot Loader Specification documentation
--
/boot/efi/EFI/almalinux/grub.cfg-
/boot/efi/EFI/almalinux/grub.cfg:insmod blscfg
/boot/efi/EFI/almalinux/grub.cfg:blscfg
/boot/efi/EFI/almalinux/grub.cfg-### END /etc/grub.d/10_linux ###
--
/boot/grub2/grub.cfg-#
/boot/grub2/grub.cfg:# The blscfg command parses the BootLoaderSpec files stored in /boot/loader/entries and
/boot/grub2/grub.cfg-# populates the boot menu. Please refer to the Boot Loader Specification documentation
--
/boot/grub2/grub.cfg-
/boot/grub2/grub.cfg:insmod blscfg
/boot/grub2/grub.cfg:blscfg
/boot/grub2/grub.cfg-### END /etc/grub.d/10_linux ###
Soooooo what are the next steps to try?
Thanks in advance for you help
PS: big shotout to Almalinux’s team that provided me a reliable and simple replacement solution for my CentOS VMs!
not sure what causes a yum update not to update the kernel - could be as you’re only doing security updates (not really recommended these days) or maybe as you only have kernel-core and not the kernel metapackage installed (was a “feature” of the earlier minimal iso’s).
grubby is the de-facto in el9, but even in 8 its not a great idea to be using grub2-mkconfig, its still a bit bios/mbr -centric.
grubby --add-kernel=/boot/vmlinuz-4.18.0-425.3.1.el8.x86_64 --copy-default --make-default
The 4.18.0-425.3.1.el8.x86_64 kernel isn't installed in the machine
Which makes sense to me, because the file is not in /boot:
But this is not making any sense if we look at this:
yum check-update
Last metadata expiration check: 0:46:23 ago on Tue Jan 10 17:43:21 2023.
Security: kernel-core-4.18.0-425.3.1.el8.x86_64 is an installed security update
Security: kernel-core-4.18.0-372.32.1.el8_6.x86_64 is the currently running version
That did the trick!
At the end, such a simple solution, but as I’m not that confident with Linux, I prefered to ask for such critical component…
I noticed at download that he downloaded more than already installed. Maybe something went wrong on this one at installation (all my VMs have automatic installation of all patches - not only security ones)