Bug#736678: grub2: support init boot flag selection

Michael Gilbert mgilbert at debian.org
Thu Jan 30 14:10:01 UTC 2014


On Thu, Jan 30, 2014 at 8:38 AM, Colin Watson wrote:
> 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.

Hi Colin,

Thanks a bunch for the feeback.  I'll look into that.

Best wishes,
Mike



More information about the Pkg-grub-devel mailing list