From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1LqTPJ-00043B-2V for mharc-grub-devel@gnu.org; Sun, 05 Apr 2009 10:33:09 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LqTPG-00042w-RI for grub-devel@gnu.org; Sun, 05 Apr 2009 10:33:06 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LqTPE-00042k-UU for grub-devel@gnu.org; Sun, 05 Apr 2009 10:33:05 -0400 Received: from [199.232.76.173] (port=40784 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LqTPE-00042h-2s for grub-devel@gnu.org; Sun, 05 Apr 2009 10:33:04 -0400 Received: from mail.nexedi.com ([91.121.25.85]:36731 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1LqTPD-0000Gp-Mp for grub-devel@gnu.org; Sun, 05 Apr 2009 10:33:03 -0400 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 954563D9EF for ; Sun, 5 Apr 2009 16:33:01 +0200 (CEST) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sun, 5 Apr 2009 23:33:02 +0900 User-Agent: KMail/1.9.10 References: <200904040512.15522.okuji@enbug.org> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200904052333.02794.okuji@enbug.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] Split of normal mode (version 2) 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: Sun, 05 Apr 2009 14:33:07 -0000 On Saturday 04 April 2009 14:06:18 Bean wrote: > One of the problem for normal.mod dependency is its side effect. For > example, currently ls.mod depend on normal.mod just for > grub_normal_print_device_info. If we want to embed ls.mod in core.img, > we must embedded normal.mod as well, along with a lot of > initialization actions that we may not want. Right, if we can completely merge the ls on rescue mode and that on normal mode. For now, I am not sure if this is feasible, so I prefer to keep a poor version of ls for rescue mode, which does not require functions in normal.mod, until you prove that that is feasible. > We can generate a handler.lst by scanning source for > grub_parser_register, etc, just like commands.lst: > > parser.sh: sh > reader.normal: normal > menu.textmenu: textmenu > terminal_outout.gfxterm: gfxterm > > We can then read it in normal.mod and set the hooks for all handler > classes. I like if you can merge all kinds of handlers this way, thus eliminating the command.lst and the fs.lst. But I still think that having commands for parsers and menus, since you can do: grub> sh /boot/grub/foo.sh grub> textmenu grub> gfxmenu They won't be very useful for most people, but could be useful for development. Regards, Okuji