Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D160h-0004hg-TN for mharc-grub-devel@gnu.org; Tue, 15 Feb 2005 11:57:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D160Z-0004fP-VL for grub-devel@gnu.org; Tue, 15 Feb 2005 11:57:08 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D160N-0004aQ-7K for grub-devel@gnu.org; Tue, 15 Feb 2005 11:57:01 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D160M-0004UG-Ii for grub-devel@gnu.org; Tue, 15 Feb 2005 11:56:54 -0500 Received: from [32.97.110.131] (helo=e33.co.us.ibm.com) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.34) id 1D15Ux-0003nz-5c for grub-devel@gnu.org; Tue, 15 Feb 2005 11:24:27 -0500 Received: from westrelay02.boulder.ibm.com (westrelay02.boulder.ibm.com [9.17.195.11]) by e33.co.us.ibm.com (8.12.10/8.12.9) with ESMTP id j1FGOO0D484266 for ; Tue, 15 Feb 2005 11:24:24 -0500 Received: from d03av04.boulder.ibm.com (d03av04.boulder.ibm.com [9.17.195.170]) by westrelay02.boulder.ibm.com (8.12.10/NCO/VER6.6) with ESMTP id j1FGONp8421762 for ; Tue, 15 Feb 2005 09:24:23 -0700 Received: from d03av04.boulder.ibm.com (loopback [127.0.0.1]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j1FGOJWN019291 for ; Tue, 15 Feb 2005 09:24:19 -0700 Received: from [192.168.0.100] (sig-9-65-60-109.mts.ibm.com [9.65.60.109]) by d03av04.boulder.ibm.com (8.12.11/8.12.11) with ESMTP id j1FGOJBb019245 for ; Tue, 15 Feb 2005 09:24:19 -0700 Mime-Version: 1.0 (Apple Message framework v619.2) In-Reply-To: <200502142225.36773.okuji@enbug.org> References: <200502142225.36773.okuji@enbug.org> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: <09a61244caf6be3a0605896e921f1c8b@penguinppc.org> Content-Transfer-Encoding: 7bit From: Hollis Blanchard Date: Tue, 15 Feb 2005 10:24:19 -0600 To: The development of GRUB 2 X-Mailer: Apple Mail (2.619.2) Subject: Re: some design issues 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, 15 Feb 2005 16:57:11 -0000 On Feb 14, 2005, at 3:25 PM, Yoshinori K. Okuji wrote: > > Currently, GRUB 2 uses grub.cfg as the name of a default config file. I > chose this, according to a private discussion between me and Jeremy > Katz. He pointed out that the user did not find a config file if it was > menu.lst, because he/she simply ran "locate grub". So the Red Hat > version of GRUB legacy makes a symlink to menu.lst as grub.conf. I said > that this name does not fit in 8.3 format. He agreed but he didn't want > to discuss what name should be better. > > I think the name "menu.lst" is really strange, so I don't like it. But > I > don't know if grub.cfg is nice. What do you think? I sometimes think > that "grubrc" might be better (like "bashrc"). I like grub.cfg. The 8.3 format is very important to be able to keep it on a FAT filesystem (which I think will be critical for RS/6000 PowerPC support). "cfg" seems better to me than "cnf". I don't like "rc". > Next thing. I think it is a bad idea to make the variable for a menu > global, because this is not compatible with having multiple nested > menus. But some commands want to access information on the environment > (such as current menu). I can think of two ways to address this issue: > > 1. Pass one more argument to each command. This argument would be a > pointer to struct context, and contains a pointer to current menu, etc. > > 2. Provide global functions to access information. These functions > would > have to use global variables. I haven't looked into the code in detail here, but I'd lean towards 2. Otherwise, *only* commands will be able to change the menu, and we may need other code to have that option in the future. (I have no specific ideas here, but just want to keep options open.) -Hollis