Bug 728775

Summary: grub2 --class xen: initramfs missing, booting under XEN fails (found on Fedora 16)
Product: [Fedora] Fedora Reporter: Marko Ristola <marko.ristola>
Component: grub2Assignee: Peter Jones <pjones>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: high Docs Contact:
Priority: unspecified    
Version: rawhideCC: dennis, fedora, ketuzsezr, lkundrak, mike, pasik, pjones
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: grub2-1.99-6.fc16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-30 18:49:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
While searching initrd files, search initramfs-_kernel_version_.img too none

Description Marko Ristola 2011-08-07 11:43:01 UTC
Created attachment 517041 [details]
While searching initrd files, search initramfs-_kernel_version_.img too

Description of problem:

grub2-mkconfig generates initramfs-less boot entries for "--class xen"
Effect is that XEN kernels are not bootable.

/etc/grub.d/20_linux_xen searches /boot/initrd-* style files.
Unfortunately in Fedora 16 install the files are named
/boot/initramfs-*. Thus "--class xen" entries don't have initrd at all.

Version-Release number of selected component (if applicable):


How reproducible:
Always.

Steps to Reproduce:
1. Install xen package on current Fedora 16.
2. Run grub2-mkconfig -o /boot/grub2/grub.cfg
3. Test if men uentries on /boot/grub2/grub.cfg for XEN include initramfs lines.
  
Actual results:

initramfs is not introduced on "--class xen". Trying to boot them fails.

Expected results:

initramfs is included on "--class xen" menu entries.
Booting XEN loads initramfs.

Additional info:

Comment 1 Konrad Rzeszutek Wilk 2011-09-13 14:30:03 UTC
The patch definitely did the trick for me.

So Tested-by: Konrad Rzeszutek Wilk <konrad.wilk>

can be certainly added.

Comment 2 Andy Burns 2011-09-14 05:05:53 UTC
*** Bug 738010 has been marked as a duplicate of this bug. ***

Comment 3 Andy Burns 2011-09-14 05:14:28 UTC
The patch in my DUPE ought to be in a marginally more acceptble format (diff -Naur) but in any case this is a trivial one-liner ...

Comment 4 Fedora Update System 2011-09-14 20:28:50 UTC
grub2-1.99-6.fc16 has been submitted as an update for Fedora 16.
https://admin.fedoraproject.org/updates/grub2-1.99-6.fc16

Comment 5 Fedora Update System 2011-09-15 21:19:20 UTC
Package grub2-1.99-6.fc16:
* should fix your issue,
* was pushed to the Fedora 16 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing grub2-1.99-6.fc16'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/grub2-1.99-6.fc16
then log in and leave karma (feedback).

Comment 6 W. Michael Petullo 2011-09-16 15:19:19 UTC
I just tested this new package on Fedora Beta RC1 and see that grub2-mkconfig now creates the proper initramfs lines. So, this seems fixed.

Comment 7 Fedora Admin XMLRPC Client 2011-09-16 19:08:14 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 8 Konrad Rzeszutek Wilk 2011-09-29 21:56:43 UTC
Works now

Comment 9 Fedora Update System 2011-09-30 18:49:00 UTC
grub2-1.99-6.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.