Bug#708614: grub-common: Regression from 1.99: update-grub fails in Xen DomU: "warning: grub-probe can't find drive for /dev/xvda1."
Axel Beckert
abe at debian.org
Mon Aug 12 16:25:45 UTC 2013
Hi Colin,
Colin Watson wrote:
> > > Sorry I've taken so long to reply to this. Could you figure out the
> > > grub-probe command here, run it with the -vv option added, and attach
> > > the output?
> >
> > Output of version 2.00-15:
> >
> > # grub-probe -vv /dev/xvda1
> > grub-probe: error: failed to get canonical path of udev.
JFTR: This command did not fail with 1.99 and have tons of output
lines.
> I don't think that can possibly be the command that grub-mkconfig was
> running. You need to run "sh -x /usr/sbin/grub-mkconfig >/dev/null",
> look for the failing grub-probe command in that output, and add the -vv
> option to it.
Thanks for that hint. I actually wasn't sure where to start and I
started with error messages + --help (and there it looked as if any
options were optional). But since the command worked in 1.99 and
failed in 2.00 it looked like it would show the differences.
Since I saw there are multiple calls of grub-probe, so I add the
output of all of them:
# /usr/sbin/grub-probe --target=device /
/dev/xvda1
# /usr/sbin/grub-probe --device /dev/xvda1 --target=fs_uuid
/usr/sbin/grub-probe: warning: disk does not exist, so falling back to partition device /dev/xvda1.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your device.map.
# /usr/sbin/grub-probe --device /dev/xvda1 --target=fs
/usr/sbin/grub-probe: warning: disk does not exist, so falling back to partition device /dev/xvda1.
/usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/xvda1. Check your device.map.
Then from /etc/grub.d/10_linux. As that one wasn't run with -x, too, I
ran it separately and the output of "sh -x" already showed some issues:
# sh -x /etc/grub.d/10_linux 2>&1 | fgrep grub-probe
+ echo grub-probe
+ grub_probe=/usr/sbin/grub-probe
+ /usr/sbin/grub-probe --device --target=fs
That gave:
# /usr/sbin/grub-probe --device --target=fs
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try `grub-probe --help' or `grub-probe --usage' for more information.
+ /usr/sbin/grub-probe --device --target=fs_uuid
That gave:
# /usr/sbin/grub-probe --device --target=fs_uuid
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try `grub-probe --help' or `grub-probe --usage' for more information.
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
Full output:
# /usr/sbin/grub-probe --device --target=partmap
No path or device is specified.
Usage: grub-probe [OPTION...] [OPTION]... [PATH|DEVICE]
Try `grub-probe --help' or `grub-probe --usage' for more information.
The remaining output seems just to be a repetition:
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
+ /usr/sbin/grub-probe --device --target=fs_uuid
+ /usr/sbin/grub-probe --device --target=partmap
/usr/sbin/grub-probe: error: cannot find a GRUB drive for . Check your device.map.
[...]
HTH
Regards, Axel
--
,''`. | Axel Beckert <abe at debian.org>, http://people.debian.org/~abe/
: :' : | Debian Developer, ftp.ch.debian.org Admin
`. `' | 1024D: F067 EA27 26B9 C3FC 1486 202E C09E 1D89 9593 0EDE
`- | 4096R: 2517 B724 C5F6 CA99 5329 6E61 2FF9 CD59 6126 16B5
More information about the Pkg-grub-devel
mailing list