Bug 728775 - grub2 --class xen: initramfs missing, booting under XEN fails (found on Fedora 16)
Summary: grub2 --class xen: initramfs missing, booting under XEN fails (found on Fedor...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: grub2
Version: rawhide
Hardware: All
OS: Linux
unspecified
high
Target Milestone: ---
Assignee: Peter Jones
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 738010 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-08-07 11:43 UTC by Marko Ristola
Modified: 2011-09-30 18:49 UTC (History)
7 users (show)

Fixed In Version: grub2-1.99-6.fc16
Clone Of:
Environment:
Last Closed: 2011-09-30 18:49:12 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
While searching initrd files, search initramfs-_kernel_version_.img too (743 bytes, patch)
2011-08-07 11:43 UTC, Marko Ristola
no flags Details | Diff

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.


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