Bug 748147

Summary: grub2-efi rpm needs grub2 to function
Product: [Fedora] Fedora Reporter: Jurgen Kramer <gtmkramer>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 16CC: dennis, jacek.kruger, mads, pjones, the.ridikulus.rat, tushe
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-02-13 21:10:33 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Jurgen Kramer 2011-10-22 13:25:14 UTC
Description of problem:
when trying to use grub2-efi it needs functions provided by the grub2 rpm.

Version-Release number of selected component (if applicable):
grub2-efi-1.99-10.fc16.x86_64

How reproducible:
always

Steps to Reproduce:
1. Install grub2-efi
2. do a grub2-efi-mkconfig
3.
  
Actual results:
grub2-efi-mkcpnfig fails due to missing grub2-probe and grub2-mkrelpath

Expected results:
either grub2-efi provides grub2-probe and grub2-mkrelpath or the grub2-efi RPM adds a dependency for grub2

Additional info:
[root@develbox grub2-efi]# grub2-efi-mkconfig -o grub.cfg 
Generating grub.cfg ...
/usr/lib/grub/grub-mkconfig_lib: line 220: /sbin/grub2-probe: No such file or directory
Found linux image: /boot/vmlinuz-3.1.0-0.rc10.git0.1.fc16.x86_64
/usr/lib/grub/grub-mkconfig_lib: line 47: /usr/bin/grub2-mkrelpath: No such file or directory


BTW there is a grub2-efi-probe in /sbin but no grub2-efi-mkrelpath

Comment 1 Mads Kiilerich 2011-10-25 15:37:08 UTC
Yes, the grub2 and grub2-efi packages really do collide, but at build time grub2 is installed on top of grub2-efi and the grub2-efi package will thus incorrectly contain the following files from grub2:

/etc/bash_completion.d/grub (no bash completion for grub2-efi commands)
/etc/grub.d/00_header (incorrect -efi transform of command names, used for /boot/grub2*/locale references)
/usr/lib/grub/grub-mkconfig_lib (incorrect -efi transform of names for pkgdatadir, grub-probe and grub-mkrelpath, is sourced in /etc/grub.d/* and /sbin/grub2-efi-mkconfig)

That is one of the reasons f16 uses grub2 for BIOS and grub-efi for EFI.

Comment 2 Todor Tsankov 2011-11-09 10:46:06 UTC
I think its more of a bug as there is /sbin/grub2-efi-probe provided with grub2-efi package, and replacing:

transform="s&^&&;s,grub,grub2,"

with 

transform="s&^&&;s,grub,grub2-efi,"

inside /usr/lib/grub/grub-mkconfig_lib resolves the issue

Comment 3 Mads Kiilerich 2012-04-30 22:46:32 UTC
The right fix for this is to use the same transform for both efi and non-efi. The tools are exactly the same.

Comment 4 Mads Kiilerich 2012-06-12 12:57:25 UTC
This is solved with the packaging scheme used in the latest koji builds.

Comment 5 Fedora End Of Life 2013-01-16 16:57:28 UTC
This message is a reminder that Fedora 16 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 16. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as WONTFIX if it remains open with a Fedora 
'version' of '16'.

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, simply change the 'version' 
to a later Fedora version prior to Fedora 16's end of life.

Bug Reporter: Thank you for reporting this issue and we are sorry that 
we may not be able to fix it before Fedora 16 is end of life. If you 
would still like to see this bug fixed and are able to reproduce it 
against a later version of Fedora, you are encouraged to click on 
"Clone This Bug" and open it against that version of Fedora.

Although we aim to fix as many bugs as possible during every release's 
lifetime, sometimes those efforts are overtaken by events. Often a 
more recent Fedora release includes newer upstream software that fixes 
bugs or makes them obsolete.

The process we are following is described here: 
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Fedora End Of Life 2013-02-13 21:10:37 UTC
Fedora 16 changed to end-of-life (EOL) status on 2013-02-12. Fedora 16 is 
no longer maintained, which means that it will not receive any further 
security or bug fix updates. As a result we are closing this bug.

If you can reproduce this bug against a currently maintained version of 
Fedora please feel free to reopen this bug against that version.

Thank you for reporting this bug and we are sorry it could not be fixed.