From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JKAO7-0000zi-2m for mharc-grub-devel@gnu.org; Wed, 30 Jan 2008 05:41:51 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JKAO4-0000y9-O7 for grub-devel@gnu.org; Wed, 30 Jan 2008 05:41:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JKAO0-0000wl-RW for grub-devel@gnu.org; Wed, 30 Jan 2008 05:41:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JKAO0-0000wi-GD for grub-devel@gnu.org; Wed, 30 Jan 2008 05:41:44 -0500 Received: from mx3.rz.ruhr-uni-bochum.de ([134.147.64.33]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1JKANz-00059A-Ur for grub-devel@gnu.org; Wed, 30 Jan 2008 05:41:44 -0500 X-Queued: (qmail 587 invoked by uid 271); 30 Jan 2008 10:41:42 -0000 X-Qmailscanner: from 134.147.252.214 by mx3.rz.ruhr-uni-bochum.de (envelope-from , uid 80) with qmail-scanner-2.01 (sophie: 3.05/2.52/4.24. Clear:RC:1(134.147.252.214):. Processed in 0.040883 secs); 30 Jan 2008 10:41:42 -0000 Received: from router.leat.ruhr-uni-bochum.de (134.147.252.214) by mx3.rz.ruhr-uni-bochum.de with SMTP; 30 Jan 2008 10:41:42 -0000 Received: from [134.147.55.45] (frodo.leat.ruhr-uni-bochum.de [134.147.55.45]) by router.leat.ruhr-uni-bochum.de (8.12.2/8.12.2/SuSE Linux 0.6) with ESMTP id m0UAkA1l005583; Wed, 30 Jan 2008 11:46:10 +0100 Message-ID: <47A05477.5030300@leat.rub.de> Date: Wed, 30 Jan 2008 11:41:59 +0100 From: Fabian Greffrath User-Agent: Thunderbird 2.0.0.9 (Windows/20071031) MIME-Version: 1.0 To: Fabian Greffrath References: <4790C888.6040007@leat.rub.de> <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> In-Reply-To: <4795EC4D.5020207@leat.rub.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-detected-kernel: by monty-python.gnu.org: Linux 2.4-2.6 Cc: grub-devel@gnu.org, 462218@bugs.debian.org, Otavio Salvador , Robert Millan 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 10:41:49 -0000 > > 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!). > > What does everyone think about this? > Yes, it is really necessary! How about this proposal: $ grub-convert Usage: grub-convert [-d|-g] [DEVICE|DRIVE] Convert back and forth between Linux devices and GRUB drives. -d, --device=DEVICE convert DEVICE into a GRUB-drive [e.g. /dev/hda1 -> (hd0,1)] -g, --drive=DRIVE convert DRIVE into a Linux device [e.g. (hd0,1) -> /dev/hda1] -h, --help display this message and exit -V, --version print version information and exit Cheers, Fabian -- Dipl.-Phys. Fabian Greffrath Ruhr-Universität Bochum Lehrstuhl für Energieanlagen und Energieprozesstechnik (LEAT) Universitätsstr. 150, IB 3/134 D-44780 Bochum Telefon: +49 (0)234 / 32-26334 Fax: +49 (0)234 / 32-14227 E-Mail: greffrath@leat.ruhr-uni-bochum.de