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

Bug 382769

Summary: grub2 should allow for manual configuration
Product: Gentoo Linux Reporter: Mike Gilbert <floppym>
Component: [OLD] UnspecifiedAssignee: Tomáš Chvátal (RETIRED) <scarabeus>
Status: RESOLVED FIXED    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Mike Gilbert gentoo-dev 2011-09-13 05:19:27 UTC
The current grub2 ebuild calls grub2-mkconfig unconditionally from pkg_postinst. If the user has written their grub configuration by hand, this will overwrite their hard work. There is currently no way to disable this.

Two possible solutions:
1. Call grub2-mkconfig conditionally based on a use flag.
2. Remove the grub2-mkconfig call and replace it with an ewarn message.
Comment 1 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-14 17:46:43 UTC
Good point, i will create pkg_config phase where you would be able to configure which directory it uses with some sane default :)
Comment 2 Tomáš Chvátal (RETIRED) gentoo-dev 2011-09-20 22:06:44 UTC
Actually i did fix this already few days ago but forgot to close this bug.

Lemme know if it works for you.