Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 463992 - sys-boot/grub-2.00-r2: No initrd/initramfs on Xen entries
Summary: sys-boot/grub-2.00-r2: No initrd/initramfs on Xen entries
Status: VERIFIED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-31 13:25 UTC by jannis
Modified: 2013-04-01 15:39 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jannis 2013-03-31 13:25:47 UTC
I'm currently trying to get a machine up that boots off a MD RAID1 using an genkernel-generated initramfs. Without using Xen, everything is fine: the initramfs is created, "grub2-mkconfig" finds the kernel and the ramdisk and creates a working menu entry ("linux" and "initrd" line are there).
When I want to use Xen, things go wrong:
grub2-mkconfig detects Xen and the kernel correctly but don't use the initramfs at all. The lines "multiboot /xen.gz ..." and one "module /kernel-..." are there but the one "module /initramfs-..." is missing, resulting in an unbootable system since the root partition cannot be found. When I insert the "module /initramfs-..."-line manually, everything is fine.

Don't know if it's an upstream issue since there seem to be some Gentoo-specifica in /etc/grub.d/* and I'm pretty new to grub

Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2013-03-31 14:16:00 UTC
Yeah, there were some late changes to 10_linux regarding detection of a genkernel initramfs for a non-genkernel kernel. We might need to copy those over to 20_linux_xen as well.

Can you confirm that you are building/installing your kernel without genkernel, and then only generating the initramfs with genkernel?
Comment 2 jannis 2013-03-31 14:53:21 UTC
(In reply to comment #1)
> Can you confirm that you are building/installing your kernel without
> genkernel, and then only generating the initramfs with genkernel?

Absolutely correct. Kernel is done completely manual (menuconfig), the initramfs is done via "genkernel --mdadm --install initramfs".
Comment 3 Mike Gilbert gentoo-dev 2013-03-31 17:05:38 UTC
I think it should be fixed now. Look for the following ChangeLog message, and then re-install sys-boot/grub.

+  31 Mar 2013; Mike Gilbert <floppym@gentoo.org>
+  +files/grub-2.00-20_linux_xen.patch, grub-2.00-r2.ebuild:
+  Fix detection of genkernel initramfs on xen.
Comment 4 jannis 2013-04-01 15:39:47 UTC
Yep, patch works. Thanks for the fast fix!