Red Hat Bugzilla – Bug 244498
grubby error on kernel install
Last modified: 2007-11-30 17:12:07 EST
Description of problem:
When yum updating kernel to latest (2.6.21-1.3228.fc7), I get the following error -
Installing: kernel ####################### [25/71]
grubby fatal error: unable to find a suitable template
and no grub entry is created for the kernel.
Version-Release number of selected component (if applicable):
This is on a system upgraded from FC6
Something that may also pertain - when I upgraded from FC6, the grub entry was
incorrect after the upgrade; it was still pointing at the (then deleted) FC6
kernel. Also, my boot partition was no longer used. This was an anaconda upgrade.
Ping...is there anyone out there?
OK, it's happened again with kernel-184.108.40.206-27.fc7.
I'm not sure whether it's any use continuing entering stuff here as no-one seems
to be taking any notice.
This turned out to be caused by anaconda having messed up my partitions during
the upgrade - it totally ignored the presense of my /boot partition and created
a /boot directory on my / partition without updating grub.conf. grubby was
reading grub.conf and trying to find vmlinuz.(whatever) directly under hd2 (/
partition) and failing with the "unable to find a suitable template" error.
A more explanatory error message like "Unable to find kernel file -
/vmlinuz.(whatever)" would have helped. I'll see if I can't patch up grubby to
display that message and update the bug with the patch.
Got the same error when today I installed kernel update using 'yum -y update'
Kernel-220.127.116.11-33.fc7 has been installed but no grub enter created :-s, however
i can see the kernel files in /boot.
We are using kernel-xen but love to keep normal kernel for fallback and today we
lost that kernel entry from grub.conf :(