[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Fixing grub-probe to work with user-space part stores
From: |
Jeremie Koenig |
Subject: |
Re: Fixing grub-probe to work with user-space part stores |
Date: |
Wed, 28 Jul 2010 23:53:25 +0200 |
User-agent: |
Mutt/1.5.20 (2009-06-14) |
On Tue, Jul 27, 2010 at 01:20:57AM +0200, olafBuddenhagen@gmx.net wrote:
> [...]
> On Tue, Jul 13, 2010 at 08:00:24PM +0200, Jérémie Koenig wrote:
> > The second one, which I favor and am working on so far, would be to
> > enumerate the _grub_ devices, and use get_storage_info() on them too.
>
> Not sure what you mean by using get_storage_info() on GRUB devices?...
I mean we enumerate the "whole disk" devices from the devices.map, use
get_storage_info() on them and compare the result with the storage
information for the looked up file.
If both use the same underlying device, we use grub's own partition
information to find the one which contains the file, then cook a
/dev/hdXsY device name for it.
(This is the approach used in the patch sent.)
--
Jeremie Koenig <jk@jk.fr.eu.org>