Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 591200

Summary: <=sys-kernel/genkernel-3.4.52.4-r1 - grub2-mkconfig: command not found when using sys-boot/grub[-multislot]
Product: Gentoo Linux Reporter: Thomas Deutschmann (RETIRED) <whissi>
Component: Current packagesAssignee: Gentoo Genkernel Maintainers <genkernel>
Status: RESOLVED FIXED    
Severity: normal CC: shentino
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: fix-grub2.patch

Description Thomas Deutschmann (RETIRED) gentoo-dev 2016-08-13 16:49:02 UTC
sys-boot/grub recently [1] disabled default set multislot USE flag. Now we have the problem that genkernel can no longer use grub2-mkconfig:

> [...]
> * lvm: >> Using cache
> *         >> Appending luks cpio data...
> * Including LUKS support
> *         >> Appending modules cpio data...
> *         >> Appending blkid cpio data...
> *         >> Appending modprobed cpio data...
> *         >> Appending linker cpio data...
> *         >> Finalizing cpio...
> *         >> Compressing cpio data (.xz)...
> * You can customize Grub2 parameters in /etc/default/grub.
> * Running grub2-mkconfig to create /boot/grub/grub.cfg...
> * ERROR: grub2-mkconfig failed

Keep in mind that genkernel now must check for grub-mkconfig AND grub2-mkconfig to support both configuration or must require sys-boot/grub[multislot].


[1] https://www.gentoo.org/support/news-items/2016-08-11-grub2_multislot_default.html
Comment 1 William Hubbs gentoo-dev 2016-08-13 17:36:07 UTC
Created attachment 443242 [details]
fix-grub2.patch

This patch should take care of the issue.

Thanks,

William
Comment 2 Thomas Deutschmann (RETIRED) gentoo-dev 2016-08-13 19:00:05 UTC
Updating summary to reflect that this is broken for a long time if an user had already disabled multislot USE flag on his/her own. However it looks like nobody did that and now because of the changed default in the grub package (but only when you have enabled automatic bootloader update within genkernel.conf)...


William's patch works for me.
Comment 3 William Hubbs gentoo-dev 2016-08-13 19:39:26 UTC
In irc, I commented that this might need to go straight to stable, but
I'm not sure that is so important now since automatic bootloader
configuration isn't on by default.
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-08-13 23:41:49 UTC
InGit.
Comment 5 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2016-08-13 23:42:02 UTC
*** Bug 591216 has been marked as a duplicate of this bug. ***