Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MdhwV-0003rK-D4 for mharc-grub-devel@gnu.org; Wed, 19 Aug 2009 05:58:55 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdhwS-0003ql-K7 for grub-devel@gnu.org; Wed, 19 Aug 2009 05:58:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdhwQ-0003ob-OA for grub-devel@gnu.org; Wed, 19 Aug 2009 05:58:52 -0400 Received: from [199.232.76.173] (port=35148 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdhwQ-0003oN-I2 for grub-devel@gnu.org; Wed, 19 Aug 2009 05:58:50 -0400 Received: from fg-out-1718.google.com ([72.14.220.155]:57146) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MdhwP-0004wL-NG for grub-devel@gnu.org; Wed, 19 Aug 2009 05:58:50 -0400 Received: by fg-out-1718.google.com with SMTP id l27so720696fgb.7 for ; Wed, 19 Aug 2009 02:58:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=jlXCDCgzkemI8o3/wFynosEWMn4pplPdHV6IKbOPGkU=; b=QALNlvwt2TEksvX8MhWua252TuXoLdW7hOnqCT7Vb/Z1i7dczmlzDiz03eUWmx8+A8 PBmAOs7ZCGXL9AjiYM9LRSwETiTXITg3FsWkcXKO47pwDkzggI8DBFxzfH3BAPK+/FfQ LeELFFRx9tAcXFVrzBzlb6vTrrBU00Reoz/TY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=C4Mww1s9Dz/c7noXo+EUc2mckKW9MsowEta+KVMPdobsTDtUPjosRpJSN0mKrR+ke0 iYQK9i5t4VsfKHwwuGmJbrkR5j2H1VXNNiwLDsG5Bb8QuICyZphNmZjnU1HNEnLxfPKz aGxnVODKPLnPVdXIX7rLJcAv+uyhXfodl9/h0= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.211.38 with SMTP id j38mr4045208fgg.26.1250675928660; Wed, 19 Aug 2009 02:58:48 -0700 (PDT) In-Reply-To: References: Date: Wed, 19 Aug 2009 11:58:48 +0200 X-Google-Sender-Auth: f454baa97c5d950f Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [RFC] Redesign of the menu system 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: Wed, 19 Aug 2009 09:58:52 -0000 2009/8/19 Vladimir 'phcoder' Serbinenko : > On Wed, Aug 19, 2009 at 11:05 AM, Bean wrote: >> Hi, >> >> Currently, the menu system is a little unorganized and difficult to >> extend. My goal of the redesign are: >> >> Modular >> Split code into small modules, each module implement a specific >> function, modules uses predefined interface to call each other. > I'm ok with using predefined interfaces but splitting between .mods > may be not beneficial since normal.mod isn't size-critical. But I'm ok > with just compiling code-independent parts into the same module >> >> Extensible >> The core of the menu system is components, which can be extended >> easily. Components can be written in C or lua. >> >> Configurable >> The menu system can be configured easily by end users. The layout of >> screen can be configured with xml file, while the window styles is >> configured with css file. Interface are exported to C and lua so that >> you can configure the menu system dynamically. > I don't like the idea of xml or css. For xnu device tree I designed my > own format but then I saw that the whole idea of loading file for > configuring grub behaviour is fundamentally flawed. Environment > variables are already present, modifiable from shell and easy to use. > To have level or tree-like model you can use '.' as a name separator > it will make the system uniform with current FreeBSD booting. XML/CSS is not the easiest format to work with but a bunch of variables which represent a tree is not nice either. However, apt has settings format that allows to specify variables both separately and as trees (using {} nested blocks). Something like that would probably make the life easier - you do not have to write the branch names again and again if you add several variables to the same branch but you can set a single variable deep inside the tree easily. Thanks Michal