Bug#491977: grub-probe fails with "Cannot find a GRUB drive for /dev/dm-N."
Moritz Naumann
bugs.debian.org at moritz-naumann.com
Wed Jul 23 18:39:15 UTC 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Robert Millan wrote:
> Does this patch (for grub-common) fix the problem?
While the patch applies fine and I can compile using
"./configure; make", I cannot rebuild the deb using debuild:
> debby:~/grub2-1.96+20080704# export LANG=en_US.UTF-8
> debby:~/grub2-1.96+20080704# LANG=en_US.UTF-8
> debby:~/grub2-1.96+20080704# debuild -us -uc
> dpkg-buildpackage -rfakeroot -D -us -uc
> dpkg-buildpackage: warning: using a gain-root-command while being root
> dpkg-buildpackage: set CFLAGS to default value: -g -O2
> dpkg-buildpackage: set CPPFLAGS to default value:
> dpkg-buildpackage: set LDFLAGS to default value:
> dpkg-buildpackage: set FFLAGS to default value: -g -O2
> dpkg-buildpackage: set CXXFLAGS to default value: -g -O2
> dpkg-buildpackage: source package grub2
> dpkg-buildpackage: source version 1.96+20080704-2
> dpkg-buildpackage: source changed by Robert Millan <rmh at aybabtu.com>
> dpkg-buildpackage: host architecture i386
> fakeroot debian/rules clean
> test -x debian/rules
> dh_testroot
> /usr/bin/make -f debian/rules reverse-config
> make[1]: Entering directory `/root/grub2-1.96+20080704'
> for i in ./config.guess ./config.sub ; do \
> if test -e $i.cdbs-orig ; then \
> mv $i.cdbs-orig $i ; \
> fi ; \
> done
> make[1]: Leaving directory `/root/grub2-1.96+20080704'
> if [ "reverse-patches" = "reverse-patches" ]; then rm -f debian/stamp-patched; fi
> patches: debian/patches/00_speed_up_font_load.diff debian/patches/01_grub_legacy_0_based_partitions.diff debian/patches/02_old_linux_version_comparison.diff debian/patches/03_disable_floppies.diff debian/patches/04_uuids_and_abstraction_dont_play_along_nicely.diff debian/patches/05_insmod_in_rescue_disks.diff debian/patches/06_olpc_prefix_hack.diff
> Patch debian/patches/06_olpc_prefix_hack.diff is not applied.
> Patch debian/patches/05_insmod_in_rescue_disks.diff is not applied.
> Patch debian/patches/04_uuids_and_abstraction_dont_play_along_nicely.diff is not applied.
> Patch debian/patches/03_disable_floppies.diff is not applied.
> Patch debian/patches/02_old_linux_version_comparison.diff is not applied.
> Patch debian/patches/01_grub_legacy_0_based_partitions.diff is not applied.
> Patch debian/patches/00_speed_up_font_load.diff is not applied.
> if [ "reverse-patches" != "reverse-patches" ]; then touch debian/stamp-patched; fi
> if [ "reverse-patches" != "reverse-patches" ] ; then \
> /usr/bin/make -f debian/rules update-config ; \
> fi
> for dir in debian/patches ; do \
> rm -f $dir/*.log ; \
> done
> for i in ./config.guess ./config.sub ; do \
> if test -e $i.cdbs-orig ; then \
> mv $i.cdbs-orig $i ; \
> fi ; \
> done
> dh_clean
> chmod +x debian/{script,grub.d/*,legacy/*}
> rm -f debian/grub-{pc,efi,ieee1275,linuxbios}.docs debian/grub-pc.substvars
> rm -rf build
> # make sure PO files are always up-to-date
> debconf-updatepo
> dpkg-source -b grub2-1.96+20080704
> dpkg-source: info: using source format `1.0'
> dpkg-source: info: building grub2 using existing grub2_1.96+20080704.orig.tar.gz
> dpkg-source: info: building grub2 in grub2_1.96+20080704-2.diff.gz
> dpkg-source: warning: executable mode 0755 of 'config.status' will not be represented in diff
> dpkg-source: error: cannot represent change to grub2-1.96+20080704/include/grub/machine:
> dpkg-source: error: new version is symlink to ../.././include/grub/i386/pc
> dpkg-source: error: old version is nonexistent
> dpkg-source: error: cannot represent change to grub2-1.96+20080704/include/grub/cpu:
> dpkg-source: error: new version is symlink to ../.././include/grub/i386
> dpkg-source: error: old version is nonexistent
> dpkg-source: warning: executable mode 0755 of 'debian/script' will not be represented in diff
> dpkg-source: warning: executable mode 0755 of 'debian/grub.d/05_debian_theme' will not be represented in diff
> dpkg-source: warning: executable mode 0755 of 'debian/legacy/upgrade-from-grub-legacy' will not be represented in diff
> dpkg-source: warning: executable mode 0755 of 'debian/legacy/grub-set-default' will not be represented in diff
> dpkg-source: warning: executable mode 0755 of 'debian/legacy/update-grub' will not be represented in diff
> dpkg-source: unrepresentable changes to source
> dpkg-buildpackage: failure: dpkg-source -b grub2-1.96+20080704 gave error exit status 1
> debuild: fatal error at line 1319:
> dpkg-buildpackage -rfakeroot -D -us -uc failed
> debby:~/grub2-1.96+20080704#
I'm not really into packaging so I may well be making some silly
mistake. In case I'm not, I guess this FTBFS and I could repost it or
you could clone/split this bug.
About the md issue: The patch does not seem to fix it (assuming, after
'make install', invoking the the freshly built ./update-grub is the
right way to invoke it, and I'm also calling grub-probe the right way):
> debby:~/grub2-1.96+20080704# ./update-grub
> Updating /boot/grub/grub.cfg ...
> Found linux image: /boot/vmlinuz-2.6.25-2-686
> Found initrd image: /boot/initrd.img-2.6.25-2-686
> Found linux image: /boot/vmlinuz-2.6.24-1-686
> Found initrd image: /boot/initrd.img-2.6.24-1-686
> done
> debby:~/grub2-1.96+20080704# cat /boot/grub/device.map
> (fd0) /dev/fd0
> (hd0) /dev/hda
> (hd1) /dev/sda
> (hd2) /dev/sdb
> debby:~/grub2-1.96+20080704# ./grub-probe -v -d /dev/dm-5
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: opening the device `/dev/hda'
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: opening the device `/dev/hda'
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: opening the device `/dev/hda1'
> grub-probe: info: opening the device `/dev/hda1'
> grub-probe: info: the size of hd0 is 320173056
> grub-probe: info: opening the device `/dev/hda2'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda1'
> grub-probe: info: opening the device `/dev/sda1'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: opening the device `/dev/sda'
> grub-probe: info: the size of hd1 is 320173056
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb1'
> grub-probe: info: opening the device `/dev/sdb1'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: opening the device `/dev/sdb'
> grub-probe: info: the size of hd2 is 320173056
> grub-probe: error: Cannot find a GRUB drive for /dev/dm-5. Check your device.map.
>
> debby:~/grub2-1.96+20080704#
Moritz
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
iEYEAREKAAYFAkiHesYACgkQn6GkvSd/BgzN3gCfQsZd9rTiuKSCQyBoMqfBvzs9
SmsAoJTVDwUf2Zbw1vwJMdtAZE4BimXq
=Uk40
-----END PGP SIGNATURE-----
More information about the Pkg-grub-devel
mailing list