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'.
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