Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 480662 - sys-boot/grub:2 grub2-mkconfig fails when GREP_OPTIONS contains "-n"
Summary: sys-boot/grub:2 grub2-mkconfig fails when GREP_OPTIONS contains "-n"
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Mike Gilbert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-11 19:32 UTC by Joe Sapp (RETIRED)
Modified: 2013-09-07 23:19 UTC (History)
1 user (show)

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


Attachments
Patch to /etc/grub.d/10_linux (grub2-patch,286 bytes, patch)
2013-08-11 19:32 UTC, Joe Sapp (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joe Sapp (RETIRED) gentoo-dev 2013-08-11 19:32:41 UTC
Created attachment 355708 [details, diff]
Patch to /etc/grub.d/10_linux

With sys-boot/grub-2.00_p5086, the grub2-mkconfig script when GREP_OPTIONS contains "-n" and multiple kernels are found.  The attached patch resolves the problem, but it also clobbers GREP_OPTIONS.

Steps to reproduce:

$ export GREP_OPTIONS=-n
$ grub2-mkconfig -o /tmp/grub2.cfg
Generating grub.cfg ...
Found linux image: /boot/vmlinuz-3.10.5-gentoo
Found linux image: 4:/boot/vmlinuz-3.7.10
/usr/bin/grub2-mkrelpath: error: failed to get canonical path of `4:/boot'.
Comment 1 Mike Gilbert gentoo-dev 2013-08-11 19:39:26 UTC
Hmm... this is kind of a gray area.

If you want it fixed, please submit this upstream. If they apply a fix, I would be happy to apply it in Gentoo as well.

https://savannah.gnu.org/bugs/?group=grub