F20: yum update does not automatically update grub2
mschwendt at gmail.com
Mon Dec 23 20:18:32 UTC 2013
On Mon, 23 Dec 2013 13:01:46 -0600, Ranjan Maitra wrote:
> sudo /bin/kernel-install add
> 3.12.5-302.fc20.x86_64 /boot/vmlinuz-3.12.5-302.fc20.x86_64 || exit $?
> grubby fatal error: unable to find a suitable template
Great! As expected.
Save a backup of the current grub.cfg file. It may make sense to publish
it somewhere for others to take a look. Next would be to figure out
why "grubby" (from package "grubby") fails as above.
The C source file grubby.c says:
/* Find a good template to use for the new kernel. An entry is
* good if the kernel and mkinitrd exist (even if the entry
* is going to be removed). Try and use the default entry, but
* if that doesn't work just take the first. If we can't find one,
* bail. */
Verify that there is an initramfs image for your installed kernels.
If not, recreate the image file. Which kernel packages are installed?
Did any of the previous kernel packages add a working entry to grub.cfg?
Do all of the entries in grub.cfg work for you except for the latest?
What happens if you return to the previous kernel by uninstalling the
latest kernel package, then run grub2-mkconfig -o /boot/grub2/grub.cfg,
then "yum update kernel"? Does it fail again?
More information about the users