From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1NXMXO-0004zc-4t for mharc-grub-devel@gnu.org; Tue, 19 Jan 2010 17:27:02 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NXMXL-0004yy-Qv for grub-devel@gnu.org; Tue, 19 Jan 2010 17:26:59 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NXMXH-0004xe-FN for grub-devel@gnu.org; Tue, 19 Jan 2010 17:26:59 -0500 Received: from [199.232.76.173] (port=40256 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NXMXH-0004xa-Ab for grub-devel@gnu.org; Tue, 19 Jan 2010 17:26:55 -0500 Received: from xvm-190-8.ghst.net ([217.70.190.8]:34260 helo=aybabtu.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NXMXH-0003nr-32 for grub-devel@gnu.org; Tue, 19 Jan 2010 17:26:55 -0500 Received: from [192.168.10.10] (helo=thorin) by aybabtu.com with esmtp (Exim 4.69) (envelope-from ) id 1NXMXD-0008ME-Rl for grub-devel@gnu.org; Tue, 19 Jan 2010 23:26:52 +0100 Received: from rmh by thorin with local (Exim 4.69) (envelope-from ) id 1NXMXD-0002FL-6Y for grub-devel@gnu.org; Tue, 19 Jan 2010 23:26:51 +0100 Date: Tue, 19 Jan 2010 23:26:51 +0100 From: Robert Millan To: The development of GNU GRUB Message-ID: <20100119222651.GA8599@thorin> References: <20100118210353.u0mrvwbf4cw8o48s@legacy.mxes.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20100118210353.u0mrvwbf4cw8o48s@legacy.mxes.net> 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.18 (2008-05-17) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: RFC: Support Linux command line variants in grub-mkconfig X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Jan 2010 22:27:00 -0000 On Mon, Jan 18, 2010 at 09:03:53PM +0000, Martin Orr wrote: > I would like to be able to choose between alternative Linux command > lines in my GRUB menu (specifically, I want a "selinux=0" option, but I > can imagine that people might want other things). I could add an extra > script to /etc/grub.d to do this, but then I have to copy the logic in > 10_linux to detect what kernel versions are available, and they do not > appear in the correct place in the menu. It would be simpler if you > could specify variant command lines in /etc/default/grub and have them > handled automatically in 10_linux. > > The attached patch allows (for example) the following configuration in > /etc/default/grub: > GRUB_LINUX_VARIANTS="noselinux kms" > > GRUB_CMDLINE_LINUX_noselinux="selinux=0" > GRUB_LABEL_LINUX_noselinux="SELinux disabled" > > GRUB_CMDLINE_LINUX_kms="i915.modesetting=1" > GRUB_LABEL_LINUX_kms="KMS enabled" > > This patch is only intended as a demonstration: various details of the > implementation still need to be sorted out, such as > internationalization. Suggestions of wildly different > approaches/configuration interfaces are welcome. I think this is growing severely overengineered. It is already more complex than it needs to be. The scripts in /etc/grub.d *are* config files. There's no reason you can't edit them to suit your needs. -- Robert Millan "Be the change you want to see in the world" -- Gandhi