Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JUrFg-0001zq-O0 for mharc-grub-devel@gnu.org; Thu, 28 Feb 2008 17:29:20 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUrFe-0001zb-SN for grub-devel@gnu.org; Thu, 28 Feb 2008 17:29:18 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUrFe-0001zM-CG for grub-devel@gnu.org; Thu, 28 Feb 2008 17:29:18 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUrFe-0001zI-7C for grub-devel@gnu.org; Thu, 28 Feb 2008 17:29:18 -0500 Received: from ns39764.ovh.net ([91.121.25.85] helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1JUrFd-0001Mu-FX for grub-devel@gnu.org; Thu, 28 Feb 2008 17:29:18 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id 67CCC3D930 for ; Thu, 28 Feb 2008 23:37:45 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 28 Feb 2008 23:29:14 +0100 User-Agent: KMail/1.9.4 References: <20080228165859.GA26926@thorin> In-Reply-To: <20080228165859.GA26926@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200802282329.14736.okuji@enbug.org> X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Subject: Re: [PATCH] Handling command line option for core.img and g2ldr 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: Thu, 28 Feb 2008 22:29:19 -0000 On Thursday 28 February 2008 17:58, Robert Millan wrote: > On Fri, Feb 29, 2008 at 12:14:06AM +0800, Bean wrote: > > > There are worse situations in fact (in that they're more common), like > > > RAID and LVM drives (which can be the boot device too). > > > > > > But I don't think we need parser code for that. The path part of the > > > prefix (/boot/grub, but sometimes /grub) is already hardcoded in by > > > grub-mkimage, so why not extend that to storing the whole path? It's > > > just a few bytes more (typically 4), which is much less than code to > > > parse cmdline params. > > > > I think this could work, it actually avoid a lot of trouble by storing > > the device name as well. > > One thing I overlooked is that it wouldn't allow for 0xFF effect (i.e. get > the root drive from bios), which is also desirable (or even is that the > default?). > > > A little setback is that we need to create > > different core.img for different boot device, > > I don't think that's a big problem since core.img is generated every time > in grub-install (but in most cases, 0xFF setup will handle it, is that > correct?). No, no, no. It is one of the most important features in GRUB that you can boot it, even if a disk is migrated. We must avoid hardcoding whenever possible. Okuji