Bug#479056: grub: destroys /boot/grub/device.map

Robert Millan rmh at aybabtu.com
Sat May 3 13:52:26 UTC 2008


On Sat, May 03, 2008 at 12:37:28AM +0200, Aurelien Jarno wrote:
> >   - grub-mkdevicemap doesn't grok virtio devices.  Could you confirm the
> >     attached quick & dirty patch makes it work?  Also, is this device path
> >     Linux-specific?
> 
> Yes that make it working. Currently virtio is only supported on Linux,
> so the device patch is Linux-specific. But that may change in the future

Thanks.  That's enough for me to add it to grub-mkdevicemap.

> > > Searching for GRUB installation directory ... found: /boot/grub
> > > grub-probe: error: Cannot find a GRUB drive for /dev/vda1.  Check your device.map.
> > > 
> > > Here is the contents of /boot/grub/device.map before it is destroyed:
> > > (fd0)   /dev/fd0
> > > (hd0)   /dev/vda
> [...]
> # grub-probe -t drive -d /dev/vda -v
> [...]
> (hd0)

Now what troubles me here is that grub-probe is working now, but my patch
wasn't supposed to fix anything in it.  This seems to be inconsistent with
your previous report.

Are you completely sure that with your /boot/grub/device.map being:

(fd0)   /dev/fd0
(hd0)   /dev/vda

and grub-common being the pristine version, grub-probe failed and (in
consequence) regenerated your device.map?

-- 
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 /.)





More information about the Pkg-grub-devel mailing list