From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JOtdP-00054w-Gv for mharc-grub-devel@gnu.org; Tue, 12 Feb 2008 06:49:11 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JOtdN-00054d-Fd for grub-devel@gnu.org; Tue, 12 Feb 2008 06:49:09 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JOtdM-00054L-1H for grub-devel@gnu.org; Tue, 12 Feb 2008 06:49:09 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JOtdL-00054I-Rf for grub-devel@gnu.org; Tue, 12 Feb 2008 06:49:07 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JOtdL-00070f-FM for grub-devel@gnu.org; Tue, 12 Feb 2008 06:49:07 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JOtdI-0002SQ-Gc for grub-devel@gnu.org; Tue, 12 Feb 2008 12:49:06 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JOtbR-0005Au-KH for grub-devel@gnu.org; Tue, 12 Feb 2008 12:47:09 +0100 Date: Tue, 12 Feb 2008 12:47:09 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080212114709.GC19144@thorin> References: <1202805123.5459.23.camel@solid.paris.klabs.be> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1202805123.5459.23.camel@solid.paris.klabs.be> Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 11:49:09 -0000 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 I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)