Bug#491977: grub-probe fails with "Cannot find a GRUB drive for /dev/dm-N."

Moritz Naumann bugs.debian.org at moritz-naumann.com
Sun Jul 27 21:39:03 UTC 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Felix Zielcke wrote:
> Am Sonntag, den 27.07.2008, 15:07 +0200 schrieb Moritz Naumann:
> 
>> Unfortunately, it doesn't work with 1.96+20080724-2 either:
> 
> I just saw that PATH contains /usr/local before /usr, I always thought
> it would be the other way round.
> So please remove any old grub files lyning there around and maybe even
> purge grub-common comepletely and install it again.
> Postinst uses grub-probe in your PATH not directly /usr/sbin/grub-probe
> 

A good guess, but this is apparently not why it's failing:



debby:~/grub2-1.96+20080704# make uninstall

debby:~/grub2-1.96+20080704# ls -lah /usr/*bin/grub*
- -rwxr-xr-x 1 root root 135K 2008-07-23 03:12 /usr/sbin/grub
- -rwxr-xr-x 1 root root  153 2008-07-23 03:11 /usr/sbin/grub-floppy
- -rwxr-xr-x 1 root root  12K 2008-07-23 03:12 /usr/sbin/grub-install
- -rwxr-xr-x 1 root root 2,3K 2008-07-23 03:12 /usr/sbin/grub-md5-crypt
- -rwxr-xr-x 1 root root  10K 2008-07-26 02:13 /usr/sbin/grub-mkdevicemap
- -rwxr-xr-x 1 root root 127K 2008-07-26 02:13 /usr/sbin/grub-probe
- -rwxr-xr-x 1 root root 1,5K 2008-07-23 03:11 /usr/sbin/grub-reboot
- -rwxr-xr-x 1 root root 3,2K 2008-07-23 03:12 /usr/sbin/grub-set-default
- -rwxr-xr-x 1 root root 2,5K 2008-07-23 03:12 /usr/sbin/grub-terminfo

debby:~/grub2-1.96+20080704# ls -lah /usr/local/*bin/grub*
ls: cannot access /usr/local/*bin/grub*: No such file or directory

debby:~/grub2-1.96+20080704# which grub-probe
/usr/sbin/grub-probe

debby:~/grub2-1.96+20080704# dpkg --configure -a
Setting up linux-image-2.6.25-2-686 (2.6.25-7) ...
Running depmod.
Finding valid ramdisk creators.
Using mkinitramfs-kpkg to build the ramdisk.
Other valid candidates: mkinitramfs-kpkg mkinitrd.yaird
initrd.img(/boot/initrd.img-2.6.25-2-686
) points to /boot/initrd.img-2.6.25-2-686
 (/boot/initrd.img-2.6.25-2-686) -- doing nothing at
/var/lib/dpkg/info/linux-image-2.6.25-2-686.postinst line 569.
vmlinuz(/boot/vmlinuz-2.6.25-2-686
) points to /boot/vmlinuz-2.6.25-2-686
 (/boot/vmlinuz-2.6.25-2-686) -- doing nothing at
/var/lib/dpkg/info/linux-image-2.6.25-2-686.postinst line 569.
Running postinst hook script /usr/sbin/update-grub.
Searching for GRUB installation directory ... found: /boot/grub
grub-probe: error: Cannot find a GRUB drive for /dev/dm-5.  Check your
device.map.

User postinst hook script [/usr/sbin/update-grub] exited with value 1
dpkg: error processing linux-image-2.6.25-2-686 (--configure):
 subprocess post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of linux-image-2.6-686:
 linux-image-2.6-686 depends on linux-image-2.6.25-2-686; however:
  Package linux-image-2.6.25-2-686 is not configured yet.
dpkg: error processing linux-image-2.6-686 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-686:
 linux-image-686 depends on linux-image-2.6-686; however:
  Package linux-image-2.6-686 is not configured yet.
dpkg: error processing linux-image-686 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-2.6-k7:
 linux-image-2.6-k7 depends on linux-image-2.6-686; however:
  Package linux-image-2.6-686 is not configured yet.
dpkg: error processing linux-image-2.6-k7 (--configure):
 dependency problems - leaving unconfigured
dpkg: dependency problems prevent configuration of linux-image-k7:
 linux-image-k7 depends on linux-image-686; however:
  Package linux-image-686 is not configured yet.
dpkg: error processing linux-image-k7 (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 linux-image-2.6.25-2-686
 linux-image-2.6-686
 linux-image-686
 linux-image-2.6-k7
 linux-image-k7
debby:~/grub2-1.96+20080704#
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEAREKAAYFAkiM6tcACgkQn6GkvSd/BgyzHQCfTjbPMEiOFFwI4TFlnJZQRafU
8lYAmQFSwCryeegjzNGjupwvxBFgzJNk
=zF7m
-----END PGP SIGNATURE-----





More information about the Pkg-grub-devel mailing list