Bug#462218: Bug#461442: detection of other OSes in update-grub

Fabian Greffrath greffrath at leat.rub.de
Wed Jan 30 10:41:59 UTC 2008


>
> 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 at leat.ruhr-uni-bochum.de






More information about the Pkg-grub-devel mailing list