Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JP290-0006yt-IF for mharc-grub-devel@gnu.org; Tue, 12 Feb 2008 15:54:22 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JP28y-0006xf-AL for grub-devel@gnu.org; Tue, 12 Feb 2008 15:54:20 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JP28v-0006vj-CY for grub-devel@gnu.org; Tue, 12 Feb 2008 15:54:19 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JP28v-0006vg-9L for grub-devel@gnu.org; Tue, 12 Feb 2008 15:54:17 -0500 Received: from smtp8-g19.free.fr ([212.27.42.65]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JP28u-0000k1-PF for grub-devel@gnu.org; Tue, 12 Feb 2008 15:54:17 -0500 Received: from smtp8-g19.free.fr (localhost [127.0.0.1]) by smtp8-g19.free.fr (Postfix) with ESMTP id 2F35617F510 for ; Tue, 12 Feb 2008 21:54:16 +0100 (CET) Received: from [192.168.0.20] (klabs.be [82.224.65.140]) by smtp8-g19.free.fr (Postfix) with ESMTP id 048EF17F557 for ; Tue, 12 Feb 2008 21:54:15 +0100 (CET) From: Franklin PIAT To: The development of GRUB 2 In-Reply-To: <20080212114709.GC19144@thorin> References: <1202805123.5459.23.camel@solid.paris.klabs.be> <20080212114709.GC19144@thorin> Content-Type: text/plain Date: Tue, 12 Feb 2008 21:54:15 +0100 Message-Id: <1202849655.7106.30.camel@solid.paris.klabs.be> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: 7bit X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: comments about /etc/default/grub X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Feb 2008 20:54:20 -0000 On Tue, 2008-02-12 at 12:47 +0100, Robert Millan wrote: > On Tue, Feb 12, 2008 at 09:32:03AM +0100, Franklin PIAT wrote: > > The variable GRUB_DEFAULT seems to be counted from 0 currently. Couldn't > > it be changed to count from 1. > > But why? :-) Human brain usually starts counting at 1 ;) You will probably oppose "It's already a big leap to migrate from GRUB Legacy to GRUB 2; I suggest we don't make it bigger yet." Which would be a good argument not to change that behaviour. > > 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". I would love to remove GRUB_DISTRIBUTOR from the /etc/default/grub file, since it's a user configuration file. Couldn't GRUB_DISTRIBUTOR be set in /util/update-grub.in (just before the line where ${sysconfdir}/default/grub is sourced) > 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" There could be some file like "/etc/grub.d/C05_foo" where the "C" range is reserved for "pre-configure". It could be generalized : "/etc/grub.d/H05_foo" => Header "/etc/grub.d/M05_foo" => Menu entries "/etc/grub.d/F05_bar" => Footer (???) Or we could use subfolders, rather than letter prefix (like exim which has /etc/exim4/conf.d/auth, /etc/exim4/conf.d/transport ...) But right now, _I_ don't know if we need such complexity. > 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 Franklin