From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1JHMSB-0002Q8-C7 for mharc-grub-devel@gnu.org; Tue, 22 Jan 2008 11:58:27 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JHMS9-0002Q3-D4 for grub-devel@gnu.org; Tue, 22 Jan 2008 11:58:25 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JHMS6-0002Pr-VC for grub-devel@gnu.org; Tue, 22 Jan 2008 11:58:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JHMS6-0002Po-Q7 for grub-devel@gnu.org; Tue, 22 Jan 2008 11:58:22 -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 1JHMS6-0003qT-AQ for grub-devel@gnu.org; Tue, 22 Jan 2008 11:58:22 -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 1JHMS5-0002u8-3q; Tue, 22 Jan 2008 17:58:21 +0100 Received: from rmh by thorin with local (Exim 4.63) (envelope-from ) id 1JHMQf-0004PJ-Qm; Tue, 22 Jan 2008 17:56:53 +0100 Date: Tue, 22 Jan 2008 17:56:53 +0100 From: Robert Millan To: The development of GRUB 2 Message-ID: <20080122165653.GB16578@thorin> 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> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4795EC4D.5020207@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: 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: Tue, 22 Jan 2008 16:58:26 -0000 On Tue, Jan 22, 2008 at 02:14:53PM +0100, Fabian Greffrath wrote: > > We should stay with the '-t drive' option to print the GRUB drive. If no > further option is given, the next item on the command line is expected > to be a path - just like before. > Then, another option, e.g. '-o', should be introduced to specify the > origin of the said item if it is different from "path", e.g.: > > $ grub-probe > Usage: grub-probe [OPTION]... [ORIGIN] > > Probe device information for a given path or, if the -o option is given, > for a given GRUB drive or system device. > > -m, --device-map=FILE use FILE as the device map > [default=/boot/grub/device.map] > -t, --target=(fs|drive|device|partmap|abstraction) > print filesystem module, GRUB drive, system > device, partition map module or abstraction module [default=fs] > -o, --origin=(path|drive|device) > expect to read from path, GRUB drive or > system device [default=path] > -h, --help display this message and exit > -V, --version print version information and exit > -v, --verbose print verbose messages > > This way it will be possible to even convert back and forth between GRUB > drives and system devices. > The conversion that is needed to translate os-prober output to GRUB menu > input will read: > GRUB_DEVICE="`grub-probe -t drive -o device ${PARTITION}`". > > Hope you like this proposal (of course, "origin" is subject to change; > it's just the first word that came to my mind that might be fitting)! 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? -- 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 /.)