[Buildroot] [PATCH 1/1] grub2: add option to specify grub.cfg file.

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Thu Feb 2 13:55:58 UTC 2017


Hello,

On Thu,  2 Feb 2017 08:40:23 -0500, Adam Duskett wrote:
> Currently the menu file for grub is copied from boot/grub2/grub.cfg
> with no way for a user to change the preset settings.  This is a small
> patch but being able to specify a menu file allows for much more flexibility
> that is desired.
> 
> Signed-off-by: Adam Duskett <Adamduskett at outlook.com>

I'm really not sure this is needed. You can just have a post-build
script or a rootfs overlay that adds your custom grub.cfg file
in /boot/grub2 at the end of the build. The one installed by the
package is merely an initial example that works for some basic
situations. But there is no need for an additional option to override
this file, just use a rootfs overlay or a post-build script.

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com


More information about the buildroot mailing list