CentOS 7 grubby fatal error When Updating Kernel

I am running yum update on a CentOS 7 server and attempt to update the kernel I see the following error


Installing : kernel-3.10.0-1160.31.1.el7.x86_64                                                                                                                                                                                                                                                                                                                              16/34 
grubby fatal error: unable to find a suitable template

solution

Execute the following

grub2-mkconfig -o /boot/grub2/grub.cfg
[root@root ~]# grub2-mkconfig -o /boot/grub2/grub.cfg
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-3.10.0-1160.31.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.31.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.25.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.25.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.21.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.21.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.15.2.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.15.2.el7.x86_64.img
Found linux image: /boot/vmlinuz-3.10.0-1160.6.1.el7.x86_64
Found initrd image: /boot/initramfs-3.10.0-1160.6.1.el7.x86_64.img
Found linux image: /boot/vmlinuz-0-rescue-65113b1a0d2f6087d515e6a8cd0ee7ef
Found initrd image: /boot/initramfs-0-rescue-65113b1a0d2f6087d515e6a8cd0ee7ef.img
Found linux image: /boot/vmlinuz-0-rescue-b8909e1541b54f74b3a3dde4eac795f6
Found initrd image: /boot/initramfs-0-rescue-b8909e1541b54f74b3a3dde4eac795f6.img
done

Leave a Comment

2 + 4 =