Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1KFCfL-0003b5-VK for mharc-grub-devel@gnu.org; Sat, 05 Jul 2008 14:39:24 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KFCfJ-0003ZW-Oh for grub-devel@gnu.org; Sat, 05 Jul 2008 14:39:21 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KFCfI-0003Y7-KV for grub-devel@gnu.org; Sat, 05 Jul 2008 14:39:20 -0400 Received: from [199.232.76.173] (port=54407 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KFCfI-0003Xn-9y for grub-devel@gnu.org; Sat, 05 Jul 2008 14:39:20 -0400 Received: from ti-out-0910.google.com ([209.85.142.186]:48322) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KFCfG-00015w-Pa for grub-devel@gnu.org; Sat, 05 Jul 2008 14:39:19 -0400 Received: by ti-out-0910.google.com with SMTP id u5so206764tia.10 for ; Sat, 05 Jul 2008 11:39:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=YNF4p52ZoYVNoJ4Cx7xnfkA8L97dE8fqqLv06Y0wxHg=; b=D6Gpxb2jHJVJDPozKfRFLqKFKvYJA/8rZz8RZnABxf6Gbn273ZlYQYcSU6tST93UQV eK7x7HpClGxjDuBDgoC0DqHNdccmJZXK1TiFvNDgSmxAz451HceOVkyf4/g1u8FrZab5 OQRpD3PR5+j/LP82H3LqI6kl+2ohs1t7yzLDY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=Hi54sHY8jo4BRvBjykuuC36aj6ISGaUu+2K5il1d0ZysGrZ6c7agDvioJJN7EYBJxC p/kw2EReUtkcEMDS/VaZPhFAogfbtCDecPeEd01e5qYKYWC7eGP4tCHyA4FFqt6G5P70 U4dFYqHDwUFpBmUdZ2mSn7wt8EIuPRmjkHZFw= Received: by 10.110.109.12 with SMTP id h12mr1131692tic.51.1215283156400; Sat, 05 Jul 2008 11:39:16 -0700 (PDT) Received: by 10.110.16.5 with HTTP; Sat, 5 Jul 2008 11:39:16 -0700 (PDT) Message-ID: Date: Sun, 6 Jul 2008 02:39:16 +0800 From: Bean To: "The development of GRUB 2" In-Reply-To: <486FB907.7020308@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20080705121501.GB1647@thorin> <486FAA1C.8080006@coresystems.de> <486FAF3D.1030708@nic.fi> <486FB17C.7020705@coresystems.de> <486FB514.5040000@nic.fi> <486FB6D8.2090506@coresystems.de> <486FB907.7020308@nic.fi> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 2) Subject: Re: Idea: elimination of the normal mode 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: Sat, 05 Jul 2008 18:39:22 -0000 On Sun, Jul 6, 2008 at 2:10 AM, Vesa J=E4=E4skel=E4inen wrot= e: > It has anything what core provides. If by this you get core smaller then = I > am all for it. If it makes it larger then I would propose to find free sp= ace > from somewhere else. Core.img just have to be standalone application so u= ser > can do recovery if something gets wrong in installation or something else= . > > I do not know how well grub scripting is integrated to normal mode so che= ck > that out first. Hi, With my suggestion, core.img would contain: minicmd + basic console interface + line scanner + fs modules It would be slightly bigger because we also add the option analyzer. But it may also reduce size due to better function separation. the line scanner would read a config file, which instruct extra modules to be loaded For example, to archive the same function of normal mode, we need: advanced console interface + text menu interface + script engine. Some advantage of this scheme: 1, One set of command. Now, if we want to use command like search, we must also include normal.mod, whose purpose is just to provide the option analyzer. 2, The separation of interface and script engine. Interface deal with interaction with user, like draw the menu, choose an menu item, edit a string, etc. Script engine is responsible for the interpretation of commands. These two parts are independent, we shouldn't bundle them into a single normal.mod.This would make modules like graphic interface more difficult to implement. --=20 Bean