CentOS 7 Grub Error When Updating Kernel

Linode Staff

I am running the GRUB2 kernel on a CentOS 7 Linode. Linode When I attempt to update the kernel I see the following error:

grubby fatal error: unable to find a suitable template

How can I resolve this so I can update my kernel?

1 Reply

Digging a little deeper into that specific error, I did find this Red Hat bug report that has some useful information on what might potentially be the cause of the issue.

One potential fix to what you are seeing would be to run the following command:

grub2-mkconfig -o /boot/grub2/grub.cfg

This would not set the new kernel as the default kernel in the boot menu.

Another option would also just be to delete the Grub configuration file then run yum update to pull in a new one.

I hope this helps point you in the right direction!

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct