LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   Centos7 update kernel does not update bootup kernel ver (https://www.linuxquestions.org/questions/centos-111/centos7-update-kernel-does-not-update-bootup-kernel-ver-4175625206/)

z080236 03-08-2018 10:11 AM

Centos7 update kernel does not update bootup kernel ver
 
Due to the spectre and meltdown vulnerability, I update the Centos 7 kernel from 3.10.0.123.el7.x86_64 to 3.10.0-693.11.6.el7.x86_64

sudo rpm -Uvh *.rpm (folder with kernel dependencies)

After updating, when go to the boot menu, it still show 3.1.0.123.el7.x86_64 and cannot find the image, (as it is not around)
I have to manually e and change the 3.1.0.123 to 3.1.0.0-693.11.6 then press ctrl+x

then it can boot normally.


I tried many methods but to no avail.

sudo vi /etc/default/grub
it is the correct version 3.1.0.0-693.11.6

RockDoctor 03-11-2018 07:04 AM

I've encountered a similar problem in Fedora Rawhide on occasion. One work-around is to run (as root)
Code:

grub2-mkconfig -o grub.cfg.temp
, then examine the newly-created grub.cfg file. If it looks good, I just manually replace the existing grub.cfg file (in /boot/grub2 on non-uefi systems or in /boot/efi/EFI/fedora for me on uefi systems) with my new file. Another work-around I've used is to manually edit the relevant grub.cfg file by copying the existing good entry, changing the kernel and initrd to reflect the version associated with the new kernel.about:preferences#search


All times are GMT -5. The time now is 09:23 AM.