From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKIx7-0007Ki-DZ for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 14:50:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKIx5-0007Jy-Gl for grub-devel@gnu.org; Wed, 30 Jan 2008 14:50:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKIx4-0007JX-3A for grub-devel@gnu.org; Wed, 30 Jan 2008 14:50:31 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKIx3-0007JT-QB for grub-devel@gnu.org; Wed, 30 Jan 2008 14:50:29 -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 1JKIx3-0002wb-ET for grub-devel@gnu.org; Wed, 30 Jan 2008 14:50:29 -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 1JKIx1-0004iY-Oj; Wed, 30 Jan 2008 20:50:28 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JKIvW-0000eW-Fj; Wed, 30 Jan 2008 20:48:54 +0100 Date: Wed, 30 Jan 2008 20:48:54 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080130194854.GA2143@thorin> References: <87sl0v6iod.fsf@ossystems.com.br> <20080119114939.GB10722@thorin> <479450A9.90601@leat.rub.de> <20080121112448.GD7378@thorin> <47948422.8000208@leat.rub.de> <20080121121828.GA9244@thorin> <4795B435.20102@leat.rub.de> <20080122124642.GC2017@thorin> <4795EC4D.5020207@leat.rub.de> <47A05477.5030300@leat.rub.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <47A05477.5030300@leat.rub.de> 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. Cc: Fabian Greffrath , 462218@bugs.debian.org, Otavio Salvador Subject: Re: Bug#461442: detection of other OSes in update-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: Wed, 30 Jan 2008 19:50:32 -0000 On Wed, Jan 30, 2008 at 11:41:59AM +0100, Fabian Greffrath wrote: > > > >This implies that we'll have to support 6 different kinds of conversions > >between path, drive and device, some of which might even be impossible. > > > >Besides, perhaps it'd be cleaner to split this conversion to a separate > >tool, so that grub-probe only operates on devices, and the other tool > >converts paths to devices (but NOT necessarily devices to paths!). Actually, this can't work now. After I added a sanity check (sorry, this was necessary) to verify file reading work properly, everything is more intermangled. I'm not sure what would be the right approach. Perhaps a flag in grub-probe that means "please skip grub_guess_root_device, argument is a device, not a path!" ? This will let the sanity check know when it can't tell which file you want to read. Or perhaps something more radical that splits everything in different layers (of exposed user commands) ? But that could clutter the user with so many commands. Suggestions? > How about this proposal: > > $ grub-convert > Usage: grub-convert [-d|-g] [DEVICE|DRIVE] -- 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 /.)