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 /.) _______________________________________________ Grub-devel mailing list Grub-devel@gnu.org http://lists.gnu.org/mailman/listinfo/grub-devel