Bug#736678: grub2: support init boot flag selection

Colin Watson cjwatson at debian.org
Thu Jan 30 13:38:37 UTC 2014


On Sat, Jan 25, 2014 at 07:36:05PM -0500, Michael Gilbert wrote:
> I've been working on a system that allows the user to easily make
> their own init system selection:
> http://packages.qa.debian.org/i/init-select.html
> 
> I've just finished working on a patch for grub (see attached) to
> support init-select's /etc/default/init conffile.
> 
> This changes util/grub.d/10_linux.in to put the selected init bootflag
> in GRUB_CMDLINE_LINUX_DEFAULT.  If there is a better approach, please
> let me know, and I'll try to improve the patch.

You're missing kFreeBSD and Hurd support here, FWIW.

However, I don't think this should require changing grub2 at all.
Nowadays we support other packages dropping files into
/etc/default/grub.d/*.cfg, which are read after /etc/default/grub and
can modify the various variables that are exported by grub-mkconfig to
/etc/grub.d/ scripts.  Could you investigate taking this approach in
init-select instead?  In this case, I think that would be better than
adding another entry to grub2's already large and unwieldy patch stack.

Thanks,

-- 
Colin Watson                                       [cjwatson at debian.org]



More information about the Pkg-grub-devel mailing list