Bug 1207390 - Unable to find a suitable template
Summary: Unable to find a suitable template
Keywords:
Status: CLOSED DUPLICATE of bug 864198
Alias: None
Product: Fedora
Classification: Fedora
Component: grubby
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-03-30 19:55 UTC by Bernardo Donadio
Modified: 2015-04-01 23:54 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2015-04-01 23:54:24 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)
/boot/grub2/grub.cfg (3.58 KB, text/plain)
2015-03-30 19:55 UTC, Bernardo Donadio
no flags Details
/var/log/grubby (4.03 KB, text/plain)
2015-03-31 19:27 UTC, Bernardo Donadio
no flags Details

Description Bernardo Donadio 2015-03-30 19:55:59 UTC
Created attachment 1008661 [details]
/boot/grub2/grub.cfg

Description of problem:
I'm unable to get the posttrans script of the kernel package to work as supposed and update the grub config file. Always when installing a kernel, I get the infamous "grubby fatal error: unable to find a suitable template" message. Updating the config with grub2-mkconfig works as supposed, but it's not automatic.

*I have no idea on how to provide further diagnostic messages (if there are any) from grubby*

Version-Release number of selected component (if applicable): 
grubby-8.35.8.fc21
grub-2.02-0.13.fc21

How reproducible: Always reproducible when installing a new kernel package.


Steps to Reproduce:
1. yum install kernel
2. profit.

Actual results:
"grubby fatal error: unable to find a suitable template" is shown when running the kernel package posttrans script.


Expected results:
Successful updating of the /boot/grub2/grub.cfg file.


Additional info:
I'm attaching my actual grub.cfg. Also, I'm on a btrfs partition with subvolumes (/boot is in the same subvolume as root). Grub boots directly from this subvolume. This is a BIOS system.

Comment 1 Brian Lane 2015-03-31 00:05:10 UTC
Please attach /var/log/grubby

Comment 2 Bernardo Donadio 2015-03-31 19:27:19 UTC
Created attachment 1009235 [details]
/var/log/grubby

Here's /var/log/grubby as requested.

The btrfs scheme is the following:

/dev/sdd3 (known as hd0,msdos3 by grub, per /boot/grub2/device.map) contains a btrfs filesystem, with nothing in the root subvolume (subvolid=0) except the root (subvolid=257) and home (subvolid=258) subvolumes.

As I understand, grub access the vmlinuz images and other files by opening the main btrfs partition, and treating the subvolumes as folders. Grubby, however, doesn't recognize this path, as the system root (/) isn't the btrfs root (subvolid=0).

Comment 3 Brian Lane 2015-04-01 23:54:24 UTC

*** This bug has been marked as a duplicate of bug 864198 ***


Note You need to log in before you can comment on or make changes to this bug.