[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: grub kernel flavours (feature proposal)
From: |
Robert Millan |
Subject: |
Re: grub kernel flavours (feature proposal) |
Date: |
Tue, 1 Jul 2008 19:56:08 +0200 |
User-agent: |
Mutt/1.5.13 (2006-08-11) |
On Tue, Jul 01, 2008 at 06:55:37PM +0200, martin f krafft wrote:
> Dear grub developers,
>
> Debian's grub1 had a nice feature where its update-grub script would
> create additional stanzas with different arguments for each kernel
> it found. You configured it like this:
>
> ## altoption boot targets option
> ## multiple altoptions lines are allowed
> ## e.g. altoptions=(extra menu suffix) extra boot options
> ## altoptions=(single-user) single
> # altoptions=(single-user) single
> # altoptions=(rootdelay) rootdelay=10
>
> and this would cause three stanzas for each kernel version to be
> created, each with a different kernel line.
>
> With grub2, I note how /etc/grub.d/10_linux hardcodes that there
> should be a plain and a single-user stanza for each kernel. Someone
> has recently requested for this to be optional[0].
>
> 0. http://bugs.debian.org/476536
>
> Instead, I propose to handle single-user mode via functionality
> similar to what Debian had for grub1[1].
>
> 1. http://bugs.debian.org/488840
>
> I'd be willing to have a go at this, but I can't quite decide/figure
> out where to configure these altoptions/flavours. Any ideas?
The usual way to alter behaviour of our update-grub add-ons is to define
variables in /etc/default/grub. However, what you want to do can result
in a quite complicated layout (I suppose we'll have to live with that).
Also, note that we intend to support gettextization of "single-user"
someday..
--
Robert Millan
<GPLv2> I know my rights; I want my phone call!
<DRM> What good is a phone call… if you are unable to speak?
(as seen on /.)