[solved] update of 6.9 gives "grubby fatal error: unable to find a suitable template"

Issues related to applications and software problems
Post Reply
aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

[solved] update of 6.9 gives "grubby fatal error: unable to find a suitable template"

Post by aegersz » 2017/09/24 02:58:03

Hi, this is worrying me as i may not be able to boot my system ... i have done some research and i
m still worried about my /boot/grub/grub.conf:

this is the dodgy one:

Code: Select all

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/sda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/sda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-431.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-431.el6.x86_64 ro root=UUID=c5f51db1-bfef-4480-868f-dc6049906512 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=$
        initrd /boot/initramfs-2.6.32-431.el6.x86_64.img
my uname -a looks odd too: xxx 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

my /boot :

Code: Select all

[root@forum grub]# lr /boot
total 106092
-rwxr-xr-x 1 root  4128784 Dec 13  2013 vmlinuz-2.6.32-431.1.2.0.1.el6.x86_64
-rw-r--r-- 1 root  2518212 Dec 13  2013 System.map-2.6.32-431.1.2.0.1.el6.x86_64
-rw-r--r-- 1 root   105203 Dec 13  2013 config-2.6.32-431.1.2.0.1.el6.x86_64
-rw-r--r-- 1 root   193760 Dec 13  2013 symvers-2.6.32-431.1.2.0.1.el6.x86_64.gz
drwxr-xr-x 3 root     4096 Dec 18  2013 efi
-rw------- 1 root 15215829 Dec 18  2013 initramfs-2.6.32-431.1.2.0.1.el6.x86_64.img
-rw-r--r-- 1 root  2585052 Jul 26  2015 System.map-2.6.32-573.1.1.el6.x86_64
-rw-r--r-- 1 root   107138 Jul 26  2015 config-2.6.32-573.1.1.el6.x86_64
-rwxr-xr-x 1 root  4220816 Jul 26  2015 vmlinuz-2.6.32-573.1.1.el6.x86_64
-rw-r--r-- 1 root   205998 Jul 26  2015 symvers-2.6.32-573.1.1.el6.x86_64.gz
-rw------- 1 root 20911920 Aug 10  2015 initramfs-2.6.32-573.1.1.el6.x86_64.img
-rwxr-xr-x 1 root  4221776 Aug 14  2015 vmlinuz-2.6.32-573.3.1.el6.x86_64
-rw-r--r-- 1 root  2585088 Aug 14  2015 System.map-2.6.32-573.3.1.el6.x86_64
-rw-r--r-- 1 root   107138 Aug 14  2015 config-2.6.32-573.3.1.el6.x86_64
-rw-r--r-- 1 root   205998 Aug 14  2015 symvers-2.6.32-573.3.1.el6.x86_64.gz
-rwxr-xr-x 1 root  4277456 May 31 03:58 vmlinuz-2.6.32-696.3.1.el6.x86_64
-rw-r--r-- 1 root  2622407 May 31 03:58 System.map-2.6.32-696.3.1.el6.x86_64
-rw-r--r-- 1 root   108168 May 31 03:58 config-2.6.32-696.3.1.el6.x86_64
-rw-r--r-- 1 root   215634 May 31 03:58 symvers-2.6.32-696.3.1.el6.x86_64.gz
-rwxr-xr-x 1 root  4276016 Sep 12 22:38 vmlinuz-2.6.32-696.10.2.el6.x86_64
-rw-r--r-- 1 root  2622609 Sep 12 22:38 System.map-2.6.32-696.10.2.el6.x86_64
-rw-r--r-- 1 root   108169 Sep 12 22:38 config-2.6.32-696.10.2.el6.x86_64
-rw-r--r-- 1 root   215634 Sep 12 22:39 symvers-2.6.32-696.10.2.el6.x86_64.gz
-rw------- 1 root 18406877 Sep 24 10:41 initramfs-2.6.32-696.3.1.el6.x86_64.img
-rw------- 1 root 18410245 Sep 24 10:41 initramfs-2.6.32-696.10.2.el6.x86_64.img
drwxr-xr-x 2 root     4096 Sep 24 10:42 grub
Last edited by aegersz on 2017/09/24 07:43:31, edited 2 times in total.

aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

Re: update of 6.9 gives "grubby fatal error: unable to find a suitable template"

Post by aegersz » 2017/09/24 04:39:28

Code: Select all

[root@forum grub]# lsblk -o UUID,NAME,MOUNTPOINT
UUID                                 NAME   MOUNTPOINT
                                     vda
59e3d92c-67e1-4cc4-bc90-76123b617391 └─vda1 /

Code: Select all

[root@forum ~]# blkid
/dev/vda1: LABEL="DOROOT" UUID="59e3d92c-67e1-4cc4-bc90-76123b617391" TYPE="ext4"

Code: Select all

[root@forum ~]# cat /boot/grub/device.map
# this device map was generated by anaconda
(hd0)     /dev/sda

Code: Select all

[root@forum ~]# rpm -qa | grep 2.6.32-696.10.2
kernel-debuginfo-common-x86_64-2.6.32-696.10.2.el6.centos.plus.x86_64
kernel-devel-2.6.32-696.10.2.el6.x86_64
kernel-2.6.32-696.10.2.el6.x86_64
kernel-debuginfo-2.6.32-696.10.2.el6.centos.plus.x86_64
kernel-firmware-2.6.32-696.10.2.el6.noarch
kernel-headers-2.6.32-696.10.2.el6.x86_64
so i came up with this version ... i hope it damn well works otherwise i'm in a lot of bother:

Code: Select all

# grub.conf generated by Andrew
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (vmlinuz-2.6.32-696.10.2.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-696.10.2.el6.x86_64 ro root=/dev/vda1 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkernel=auto KEYBOARDTYPE=pc KEYTABLE=us rd_NO_DM rhgb quiet
        initrd /boot/initramfs-2.6.32-696.10.2.el6.x86_64.img

aegersz
Posts: 86
Joined: 2016/04/04 07:42:58

Re: update of 6.9 gives "grubby fatal error: unable to find a suitable template"

Post by aegersz » 2017/09/24 06:10:53

... but now it reports the wrong version in uanme -r or uname -a

do i did this:

yum update --enablerepo=centosplus kernel

and yum did this:

Code: Select all

# grub.conf generated by Andrew
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You do not have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /, eg.
#          root (hd0,0)
#          kernel /boot/vmlinuz-version ro root=/dev/vda1
#          initrd /boot/initrd-[generic-]version.img
#boot=/dev/vda
default=0
timeout=5
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
hiddenmenu
title CentOS (2.6.32-696.10.2.el6.centos.plus.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-696.10.2.el6.centos.plus.x86_64 ro root=LABEL=DOROOT rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-$
        initrd /boot/initramfs-2.6.32-696.10.2.el6.centos.plus.x86_64.img
title CentOS (vmlinuz-2.6.32-696.10.2.el6.x86_64)
        root (hd0,0)
        kernel /boot/vmlinuz-2.6.32-696.10.2.el6.x86_64 ro root=/dev/vda1 rd_NO_LUKS rd_NO_LVM LANG=en_US.UTF-8 rd_NO_MD SYSFONT=latarcyrheb-sun16 crashkern$
        initrd /boot/initramfs-2.6.32-696.10.2.el6.x86_64.img
but no matter what i do, it reverts back to: Linux xxx 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

any ideas ?

Post Reply