Grub Menu Does Not Match Kernels

General support questions
Post Reply
dtx1
Posts: 16
Joined: 2021/04/27 04:17:20

Grub Menu Does Not Match Kernels

Post by dtx1 » 2023/05/14 02:14:55

My grub menu does not match my current kernels. And I am unable to boot into most recently kernel installed in /boot

I see that grub.cfg appears both in /boot/grub2 and /boot/efi/EFI/centos

And it is the EFI one that it's using for the menu, but the recent yum updated the /boot/grub2 one.

My system is BIOS not EFI; I do have /sys/firmware/efi, but the whole /sys directory was only recently created (computer is 4 years old).

What's going on? And how to fix?

User avatar
TrevorH
Site Admin
Posts: 33277
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Grub Menu Does Not Match Kernels

Post by TrevorH » 2023/05/14 13:37:11

Are you using software RAID on your /boot partition? Show the output from cat /proc/mdstat
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

dtx1
Posts: 16
Joined: 2021/04/27 04:17:20

Re: Grub Menu Does Not Match Kernels

Post by dtx1 » 2023/05/14 23:51:52

Personalities :
unused devices: <none>

User avatar
TrevorH
Site Admin
Posts: 33277
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: Grub Menu Does Not Match Kernels

Post by TrevorH » 2023/05/15 01:38:36

Show the output from ls -la /etc/grub2.cfg /etc/grub2-efi.cfg /boot/grub2/grub.cfg /boot/efi/EFI/centos
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply