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 <GPLv2> I know my rights; I want my phone call! <DRM> What use is a phone call… if you are unable to speak? (as seen on /.) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]