Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MNIAb-0002PW-EE for mharc-grub-devel@gnu.org; Sat, 04 Jul 2009 23:13:37 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MNIAY-0002PR-Tb for grub-devel@gnu.org; Sat, 04 Jul 2009 23:13:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MNIAT-0002PF-F7 for grub-devel@gnu.org; Sat, 04 Jul 2009 23:13:33 -0400 Received: from [199.232.76.173] (port=59750 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MNIAT-0002PC-9P for grub-devel@gnu.org; Sat, 04 Jul 2009 23:13:29 -0400 Received: from mail-pz0-f197.google.com ([209.85.222.197]:35609) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MNIAT-00015I-0O for grub-devel@gnu.org; Sat, 04 Jul 2009 23:13:29 -0400 Received: by pzk35 with SMTP id 35so1581383pzk.14 for ; Sat, 04 Jul 2009 20:13:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=22TbcCQcrQU/m4LeAgCwnTnwEm7XA8rnshMqZSW4O/w=; b=vnFYwMZP3jn0GzMY+LEVHX9qS4gtnKUvLwACvVJul42V5FHGiGOvPLXIwOFmieYCmk H6qKCtc0DGL5FcOhN2C8d7cpE/fUj0gH7Ig15WVouu20IaHWkmXBz4UBAR7U8WblnsRC Za72vSZXc0OyIRFxuY0UZ59uZfD/LrQ2Uu3GM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=tanHT2ZME9IHG2djYGckPBfuitcceqC1Q8xESsPzi6beKHjkfVTr1DnSwxx+OEI4NN hNWW2njhEynA4mIAXsHGRTh/b1zbX9BEXIdplAQKdwKzwzCjoS1f39mh4DDNOSbT1ZjQ vGea7LGZoL7vgAYxiYNGCtYGRZLArRKRs8eow= MIME-Version: 1.0 Received: by 10.115.76.5 with SMTP id d5mr4883666wal.55.1246763605364; Sat, 04 Jul 2009 20:13:25 -0700 (PDT) In-Reply-To: <20090704201846.GD27480@thorin> References: <20090704201846.GD27480@thorin> Date: Sun, 5 Jul 2009 11:13:25 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: Some ideas about new features of grub 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 Jul 2009 03:13:35 -0000 Hi, >> LUA integration. >> LUA is quite powerful, it's more suitable to do complicated task than >> sh script. For example, we can use it to detect os at runtime, >> implement simple commands, or draw the graphic menu. > > I don't mind LUA being supported, but I think it's unnecessarily big > for the task GRUB is usually going to perform (the canonical example > of that is in the default grub.cfg) in the majority of cases. =A0I'd > like to see *that* use case made more robust instead of switching to > something else to obtain a flexibility we don't currently need. With LUA, we can have a more user friendly interface. I like way rEFIt works, it doesn't require configuration. At runtime, it detects os and shows an icon for each of them. We can achieve similar goal using lua. Of course, advanced user can write the menu manually, but for most user, a smart auto-generated menu may be more appealing. > >> Read/Write file system support >> We can implement two kind of fs drivers. The boot time driver is >> read-only, but after entering normal mode, we can optionally load >> another driver for write support. This approach has been used by EFI. >> For example, it has a default FAT driver, but you can also load an >> extended FAT driver >> later. > > I don't mind write filesystem support as long as its infrastructure is > completely isolated from the kernel. =A0That said, I think Marco objected > to this before, so you'll have to talk with him about this. > A while ago, grub4dos add write support for fs. Actually, it's quite limited and can only overwrite existing data. But already, people has used it to implement something like 0PE (zero sized PE), which generate the PE image on the fly. It's amazing what you can do which such function. And I think it shouldn't cause security issue, as the write driver needs to be loaded explicitly. >> Disk emulation. >> Now that it has drivemap command, we can extended it to map hard disk >> or cdrom image file, roughly equivalent to the memdisk of syslinux. > > Sounds like a killer feature, but would this actually work? =A0Once whate= ver > we're loading stops using the BIOS, it won't see the virtual drive anymor= e. Yes, it's used for BIOS based os like MS-DOS/FreeDOS. There is still some usage for them, for example, many low level maintainer tools still runs in dos. --=20 Bean