Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JUm7m-0008PF-Ta for mharc-grub-devel@gnu.org; Thu, 28 Feb 2008 12:00:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JUm7j-0008Ox-CW for grub-devel@gnu.org; Thu, 28 Feb 2008 12:00:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JUm7i-0008OU-G2 for grub-devel@gnu.org; Thu, 28 Feb 2008 12:00:46 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JUm7g-0008O7-Lx for grub-devel@gnu.org; Thu, 28 Feb 2008 12:00:46 -0500 Received: from aybabtu.com ([69.60.117.155]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JUm7g-00036e-80 for grub-devel@gnu.org; Thu, 28 Feb 2008 12:00:44 -0500 Received: from [192.168.10.6] (helo=thorin) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1JUm7e-0008J2-TK for grub-devel@gnu.org; Thu, 28 Feb 2008 18:00:43 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JUm5z-00072s-Vm for grub-devel@gnu.org; Thu, 28 Feb 2008 17:59:00 +0100 Date: Thu, 28 Feb 2008 17:58:59 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080228165859.GA26926@thorin> References: <20080225021046.e0sy9t06o0o8gwcc@webmail.spamcop.net> <20080228101821.GB350@thorin> <20080228153321.GA22615@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Organization: free as in freedom X-Message-Flag: Worried about Outlook viruses? Switch to Thunderbird! www.mozilla.com/thunderbird X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: by monty-python.gnu.org: Genre and OS details not recognized. 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 17:00:49 -0000 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?). -- Robert Millan I know my rights; I want my phone call! What use is a phone call… if you are unable to speak? (as seen on /.)