We are updating the kernel version but still uname -r is saying the older version. Appreciate your help in advance.
Please find the below details.
1.) uname -r
5.14.0-362.13.1.el9_3.x86_64
2.)yum list kernel
Last metadata expiration check: 1:14:15 ago on Tue 17 Dec 2024 04:05:53 AM UTC.
Installed Packages
kernel.x86_64 5.14.0-362.13.1.el9_3 @baseos
kernel.x86_64 5.14.0-503.15.1.el9_5 @baseos
kernel.x86_64 5.14.0-503.16.1.el9_5 @baseos
The mkconfig rewrites the grub.cfg and updates cmdline options in the BLS entries.
The editenv tells GRUB to show the menu at boot.
The grubby sets the default once more.
What does grub2-editenv list tell afterwards?
Do you see (for 5 seconds) the GRUB menu before OS loads?
Which kernel is default/gets loaded?
i have updated as below and run the below commands.
cmd :- cat /etc/default/grub
GRUB_CMDLINE_LINUX=“console=ttyS0,115200n8 console=tty0 net.ifnames=0 rd.blacklist=nouveau nvme_core.io_timeout=4294967295”
GRUB_TIMEOUT=5
GRUB_TIMEOUT_STYLE=menu
GRUB_DEFAULT=saved
GRUB_ENABLE_BLSCFG=true
sudo grub2-mkconfig --update-bls-cmdline -o /boot/grub2/grub.cfg
3.sudo grub2-editenv - set menu_auto_hide=0
I have added the above changes and i can see the OS is loading with 5.14.0-362.13.1.el9_3. Additionally when i checked in /boot directory i cant see any files related to 9.5 .I tried reinstallting the kernel version but its same.,
/boot
-rw-r–r–. 1 root root 219468 Dec 21 2023 config-5.14.0-362.13.1.el9_3.x86_64
-rw-r–r–. 1 root root 219448 Nov 7 2023 config-5.14.0-362.8.1.el9_3.x86_64
drwx------ 5 root root 16384 Jan 1 1970 efi
drwx------. 5 root root 79 Dec 18 05:37 grub2
-rw-------. 1 root root 45208110 Jan 10 2024 initramfs-5.14.0-362.13.1.el9_3.x86_64.img
-rw-------. 1 root root 45231328 Nov 16 2023 initramfs-5.14.0-362.8.1.el9_3.x86_64.img
drwxr-xr-x. 3 root root 21 Nov 16 2023 loader
lrwxrwxrwx. 1 root root 52 Jan 10 2024 symvers-5.14.0-362.13.1.el9_3.x86_64.gz → /lib/modules/5.14.0-362.13.1.el9_3.x86_64/symvers.gz
lrwxrwxrwx. 1 root root 51 Nov 16 2023 symvers-5.14.0-362.8.1.el9_3.x86_64.gz → /lib/modules/5.14.0-362.8.1.el9_3.x86_64/symvers.gz
-rw-------. 1 root root 8492936 Dec 21 2023 System.map-5.14.0-362.13.1.el9_3.x86_64
-rw-------. 1 root root 8491113 Nov 7 2023 System.map-5.14.0-362.8.1.el9_3.x86_64
-rwxr-xr-x. 1 root root 13373528 Dec 21 2023 vmlinuz-5.14.0-362.13.1.el9_3.x86_64
-rwxr-xr-x. 1 root root 13372728 Nov 7 2023 vmlinuz-5.14.0-362.8.1.el9_3.x86_64
The “dnf rq” and “rpm” did not show 5.14.0-362.13.1.el9_3, but the original “yum list” did. (The yum is mere symlink to dnf.)
None of them lists 5.14.0-362.8.1.el9_3
I would uninstall the installonly packages of 5.14.0-503.15.1.el9_5 and 5.14.0-503.16.1.el9_5.
Then check what is in /boot/loader/entries, what does grub2-editenv list show, and whether system can still boot.
Do you see the GRUB menu on boot? What entries does it show?
Is this system a VM?
PS. The use of code tags (the </> button) can make posts more readable. (I’ve used them in above quotes too.)