Please keep the bug CC'ed. Please test the attached patch On 11/01/2010 11:30 PM, Csillag Kristof wrote: > 2010-11-01 18:26 keltezéssel, Vladimir 'φ-coder/phcoder' Serbinenko írta: > >> [...] >> >>> With new grub, this returns: >>> >>> # grub-probe -t abstraction --device /dev/xvda1 -v >>> grub-probe: info: /dev/xvda1 starts from 0. >>> grub-probe: info: opening the device hd0. >>> grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your >>> device.map. >>> >>> As I have already shown, device.map contains this: >>> >>> (hd0) /dev/xvda >>> >>> so it might try to open /dev/xvda, which is a fake device, it does not >>> exist. >>> Only xvda1 and xvda2 exists. >>> Old grub could cope with this. >>> >>> >>> >>> >>> >> Could you try removing this entry? >> >> > With line from device.map removed: > > # grub-probe -t abstraction --device /dev/xvda1 -v > grub-probe: info: /dev/xvda1 starts from 0. > grub-probe: info: opening the device /dev/xvda. > grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your > device.map. > > The result is different, but still does not work. > > I have also tried to remove the (fake) /dev/xvda device. The result is: > > # grub-probe -t abstraction --device /dev/xvda1 -v > grub-probe: info: /dev/xvda1 starts from 0. > grub-probe: info: opening the device /dev/xvda. > grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your > device.map. > > When testing with devices.map entry, but fake xvda removed: > > # grub-probe -t abstraction --device /dev/xvda1 -v > grub-probe: info: Cannot stat `/dev/xvda', skipping. > grub-probe: info: /dev/xvda1 starts from 0. > grub-probe: info: opening the device /dev/xvda. > grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your > device.map. > > * * * > > Anything else to test? > > Csillag > > >
-- Regards Vladimir 'φ-coder/phcoder' Serbinenko
=== modified file 'grub-core/kern/emu/hostdisk.c'
--- grub-core/kern/emu/hostdisk.c 2010-11-06 23:10:49 +0000
+++ grub-core/kern/emu/hostdisk.c 2010-11-17 09:39:45 +0000
@@ -1533,7 +1533,8 @@
This can happen on Xen, where disk images in the host can be
assigned to devices that have partition-like names in the guest
but are really more like disks. */
- if (grub_errno == GRUB_ERR_UNKNOWN_DEVICE)
+ if (grub_errno == GRUB_ERR_UNKNOWN_DEVICE
+ || grub_errno == GRUB_ERR_BAD_DEVICE)
{
grub_util_warn
("disk does not exist, so falling back to partition device %s",
signature.asc
Description: OpenPGP digital signature

