From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JPK2L-0005in-Eg for mharc-grub-devel@gnu.org; Wed, 13 Feb 2008 11:00:41 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JPK2J-0005hH-6N for grub-devel@gnu.org; Wed, 13 Feb 2008 11:00:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JPK2H-0005gK-3q for grub-devel@gnu.org; Wed, 13 Feb 2008 11:00:38 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JPK2G-0005g7-PT for grub-devel@gnu.org; Wed, 13 Feb 2008 11:00:36 -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 1JPK2G-0002kQ-9t for grub-devel@gnu.org; Wed, 13 Feb 2008 11:00:36 -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 1JPK0P-0006Ii-0P for grub-devel@gnu.org; Wed, 13 Feb 2008 16:58:46 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JPJyA-0007yo-0V for grub-devel@gnu.org; Wed, 13 Feb 2008 16:56:22 +0100 Date: Wed, 13 Feb 2008 16:56:22 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080213155621.GD30040@thorin> References: <1202805123.5459.23.camel@solid.paris.klabs.be> <20080212114709.GC19144@thorin> <1202856910.20992.30.camel@dv> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1202856910.20992.30.camel@dv> 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: Wed, 13 Feb 2008 16:00:39 -0000 On Tue, Feb 12, 2008 at 05:55:10PM -0500, Pavel Roskin wrote: > > Let's use the same grub.d (in /usr/local/etc for local install and > in /etc for system install). What we need is a site template and a > vendor template. > > I think the templates should be sourced before 00_header. Maybe the > numbers should be shifted, so that we have 10_site, 20_vendor, 30_header > etc and still have gaps for more stuff. Or the templates should have a > distinctive suffix. That would require some redesign; note that the current process is: - update-grub sources /etc/default/grub - update-grub exports a number of predefined variables - update-grub execs every script in /etc/grub.d/ So right now variables set in /etc/grub.d/00_foo can't be used by /etc/grub.d/10_bar. > The assignments should be written like this: > > : ${GRUB_CMDLINE_LINUX=foo=bar quux=1} What does this do? It doesn't seem to have effect when GRUB_CMDLINE_LINUX is already set. > In some cases, appending more stuff would be preferred, but for > GRUB_CMDLINE_LINUX, it's better to allow the earlier templates or the > environment to cancel the additions. How would this work? -- 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 /.)