Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480768 - sys-boot/grub:2 - grub2-mkconfig should detect an initramfs image named "initramfs-<version>"
Summary: sys-boot/grub:2 - grub2-mkconfig should detect an initramfs image named "init...
Status: RESOLVED FIXED
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Sven Vermeulen (RETIRED)
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2013-08-12 18:50 UTC by Taahir Ahmed
Modified: 2013-08-15 07:53 UTC (History)
2 users (show)

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


Attachments
A patch for 10_linux to resolve the issue (10_linux.patch,134 bytes, patch)
2013-08-12 18:57 UTC, Taahir Ahmed
Details | Diff
grub2 migration patch (grub2-migration.patch,1.08 KB, patch)
2013-08-14 14:18 UTC, Mike Gilbert
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Taahir Ahmed 2013-08-12 18:50:14 UTC
"initramfs-<version" is one of the initramfs naming schemes that the gentoo Grub2 migration guide (http://www.gentoo.org/doc/en/grub2-migration.xml) recommends to allow grub2-mkconfig to pick up the image.

However, the grub2 script /etc/grub.d/10_linux only accepts "initramfs-<version>.img", which I think is a copy paste error from the initrd entries (none of the other initramfs options have a trailing ".img").



Reproducible: Always

Steps to Reproduce:
1. dracut initramfs-<version> <version>
2. grub2-mkconfig -o /boot/grub2/grub.conf
3.
Actual Results:  
Initramfs is not detected, and the generated grub.conf doesn't use it.

Expected Results:  
The initramfs should be detected.

I've attached a patch, but it's literally a four-character fix.
Comment 1 Taahir Ahmed 2013-08-12 18:57:03 UTC
Created attachment 355800 [details, diff]
A patch for 10_linux to resolve the issue

Changes the initramfs search option "initramfs-${alt-version}.img", which I believe is an error, to "initramfs-${alt-version}".
Comment 2 Mike Gilbert gentoo-dev 2013-08-14 14:07:29 UTC
This is a problem with the migration guide; we don't need to add yet another permutation to the list of files in 10_linux.
Comment 3 Mike Gilbert gentoo-dev 2013-08-14 14:18:26 UTC
Created attachment 356002 [details, diff]
grub2 migration patch
Comment 4 Mike Gilbert gentoo-dev 2013-08-14 14:21:08 UTC
Docs team: Please apply the patch from comment 3 to the grub2 migration guide.
Comment 5 Sven Vermeulen (RETIRED) gentoo-dev 2013-08-15 07:53:44 UTC
Thanks, committed