CentOS v7, not booting from latest updated kernel.
I installed the lastest OS updates for CentOS v7 and noticed that after a reboot, my Linode is still running on a previous kernel.
It is setup as KVM based, paravirtualized using Kernel: GRUB2.
I have edited /etc/default/grub and set "GRUB_DEFAULT=0" and then ran "grub2-mkconfig –output=/boot/grub2/grub.cfg".
However, after a reboot, I am still running on an older kernel.
Any idea on what I am missing here? Thanks.
Công ty rut ham cau quan 12 giá rẻ dịch vụ rút hầm cầu quận 12 tận tâm
1 Reply
If you've already run 'yum update' then you're using the latest official CentOS 7 kernel. If you haven't run it yet, try running 'yum update' to make sure everything's up to the latest version on your Linode.
That being said, often times official distro-supplied kernels can be a bit behind what's available from kernel.org. If you'd prefer the most up-to-date kernel possible, but would still like the convenience of a package manager, I'd recommend using ELRepo:
https://elrepo.org/tiki/kernel-ml
Once you have the latest kernel-ml package, make sure it's set as the default in Grub 2. Check /etc/grub2.cfg and run the following command with the 'menuentry' slot for the kernel you just installed. You can reference each menuentry quickly with:
awk -F\' '$1=="menuentry " {print i++ " : " $2}' /etc/grub2.cfg
It starts at 0 and counts up, so for example if you had a kernel that was set as the 2nd 'menuentry' you would run:
grub2-set-default 1
Then regenerate the grub 2 configuration:
grub2-mkconfig -o /boot/grub2/grub.cfg