CentOS 7 Grub Error When Updating Kernel
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?
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!