grub.cfg not updated after new kernel install

Issues related to applications and software problems
Post Reply
drknut
Posts: 40
Joined: 2016/12/13 11:59:42

grub.cfg not updated after new kernel install

Post by drknut » 2019/08/03 06:38:00

Hello All,

After a kernel update (via yum), the server boots on the freshly installed kernel.

Except for one of my servers. To make the server boot with the updated kernel I have to manually run grub2-mkconfig.

Is it a yum configuration problem ? a permissions problem ?

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: grub.cfg not updated after new kernel install

Post by TrevorH » 2019/08/03 17:37:48

If you are having problems with grub2 on CentOS 7, such as new kernels not being detected, you should check the symlink exists between /etc/grub2.cfg -> ../boot/grub2/grub.cfg (legacy BIOS) or /etc/grub2-efi.cfg -> ../boot/efi/EFI/centos/grub.cfg (UEFI systems)
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

drknut
Posts: 40
Joined: 2016/12/13 11:59:42

Re: grub.cfg not updated after new kernel install

Post by drknut » 2019/08/04 01:46:00

The symlink existed but the target ../boot/grub2/grub.cfg is missing.

The effective grub.cfg is located in /boot/grub.

I made the symlink point to this file (/etc/grub2.cfg -> ../boot/grub/grub.cfg).

Waiting for the next kernel update.

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: grub.cfg not updated after new kernel install

Post by TrevorH » 2019/08/04 11:14:22

Was this a conversion from CentOS 6 to 7? That appears to be a grub legacy directory not a grub2 one.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

drknut
Posts: 40
Joined: 2016/12/13 11:59:42

Re: grub.cfg not updated after new kernel install

Post by drknut » 2019/08/04 14:14:42

Was this a conversion from CentOS 6 to 7? That appears to be a grub legacy directory not a grub2 one.
This is the default installation of a CentOS 7 VPS hosted by www.gandi.net.

User avatar
TrevorH
Forum Moderator
Posts: 27164
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: grub.cfg not updated after new kernel install

Post by TrevorH » 2019/08/04 15:24:23

I fear you may have been sold something that isn't CentOS if it really uses /boot/grub/grub/cfg and not /boot/grub2/grub.cfg.

https://wiki.centos.org/AdditionalResources/OtherSpins
https://wiki.centos.org/fr/TipsAndTricks/BrokenVserver
CentOS 6 will die in November 2020 - migrate sooner rather than later!
CentOS 5 has been EOL for nearly 3 years and should no longer be used for anything!
Full time Geek, part time moderator. Use the FAQ Luke

drknut
Posts: 40
Joined: 2016/12/13 11:59:42

Re: grub.cfg not updated after new kernel install

Post by drknut » 2019/08/04 19:54:43

Yes, it seems that the CentOS I got has been somewhat customized.

I must live with that.... as far as you don't ban me for using a bootleg CentOS ;)

drknut
Posts: 40
Joined: 2016/12/13 11:59:42

Re: grub.cfg not updated after new kernel install

Post by drknut » 2019/09/18 03:43:56

I made the symlink point to this file (/etc/grub2.cfg -> ../boot/grub/grub.cfg).
This didn't solve the problem.

I'm updating this thread just for the sake of completeness. I'm not seeking help, I'll will use grub2-mkconfig.

Post Reply

Return to “CentOS 7 - Software Support”