All of lore.kernel.org
 help / color / mirror / Atom feed
From: Robert Millan <rmh@aybabtu.com>
To: The development of GRUB 2 <grub-devel@gnu.org>
Subject: Re: comments about /etc/default/grub
Date: Tue, 12 Feb 2008 12:47:09 +0100	[thread overview]
Message-ID: <20080212114709.GC19144@thorin> (raw)
In-Reply-To: <1202805123.5459.23.camel@solid.paris.klabs.be>

On Tue, Feb 12, 2008 at 09:32:03AM +0100, Franklin PIAT wrote:
> Since the file /etc/default/grub really is about configuring update-grub
> behaviour, couldn't it be renamed /etc/update-grub.conf ?
> (It should be possible to source both, for transition)

No objection;  except, that since people are proposing to rename it, I think
it's better to wait untill that happens (which I hope is NOT soon).

> The variable GRUB_DEFAULT seems to be counted from 0 currently. Couldn't
> it be changed to count from 1.

But why?  :-)

> Could we add some comments, within /etc/default/grub (especially
> GRUB_CMDLINE_LINUX, since many people will use it).

Fine with me.  Note, however, that this file started being provided as
distro-specific (official GRUB doesn't ship it), and at least one of its
variables (GRUB_DISTRIBUTOR) is.

I suppose a distro-agnostic template should really be added, but I didn't
find an ellegant way to solve the GRUB_DISTRIBUTOR "problem".

For other reasons, I was thinking in a directory (let's call it
/etc/grub.source.d/) where add-ons are sourced rather than executed.  This
was in fact my initial motivation when writing update-grub (sigh ;-)).  My
idea was that specific programs could put POSIX sh scripts, for example with
things like:

  GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX} foo=bar"

in case a specific Linux parameter is preferred for running such program.

This would also solve the GRUB_DISTRIBUTOR problem simply by setting that
variable from /etc/grub.source.d/xx_debian or so:

  GRUB_DISTRIBUTOR=Debian

-- 
Robert Millan

<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call… if you are unable to speak?
(as seen on /.)



  reply	other threads:[~2008-02-12 11:49 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-12  8:32 comments about /etc/default/grub Franklin PIAT
2008-02-12 11:47 ` Robert Millan [this message]
2008-02-12 20:54   ` Franklin PIAT
2008-02-12 22:55   ` Pavel Roskin
2008-02-13 15:56     ` Robert Millan
2008-02-18  4:08       ` Pavel Roskin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080212114709.GC19144@thorin \
    --to=rmh@aybabtu.com \
    --cc=grub-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.