Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1D0oCY-0004If-Bn for mharc-grub-devel@gnu.org; Mon, 14 Feb 2005 16:56:18 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1D0oCW-0004IW-Vg for grub-devel@gnu.org; Mon, 14 Feb 2005 16:56:17 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1D0oCV-0004IK-EB for grub-devel@gnu.org; Mon, 14 Feb 2005 16:56:16 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1D0oC6-00045V-AY for grub-devel@gnu.org; Mon, 14 Feb 2005 16:55:50 -0500 Received: from [212.43.237.68] (helo=kotoba.storever.com) by monty-python.gnu.org with esmtp (Exim 4.34) id 1D0nhl-00058A-M6 for grub-devel@gnu.org; Mon, 14 Feb 2005 16:24:29 -0500 Received: from ASSP-nospam (localhost [127.0.0.1]) by kotoba.storever.com (Postfix) with ESMTP id 0D3E7FE9D845 for ; Mon, 14 Feb 2005 22:24:29 +0100 (CET) Received: from 127.0.0.1 ([127.0.0.1] helo=localhost) by ASSP-nospam ; 14 Feb 05 21:24:28 -0000 From: "Yoshinori K. Okuji" Organization: enbug.org To: grub-devel@gnu.org Date: Mon, 14 Feb 2005 22:25:36 +0100 User-Agent: KMail/1.7.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200502142225.36773.okuji@enbug.org> Subject: 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: Mon, 14 Feb 2005 21:56:17 -0000 I'd like to hear your opinions about some design-related issues. 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"). 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 don't know which is better. Okuji