Re: grub2-probe - error - cannot find a GRUB drive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 03.04.2013 09:57, Frank Murphy wrote:
> On Wed, 03 Apr 2013 09:54:34 +0200
> poma <pomidorabelisima@xxxxxxxxx> wrote:
> 
> 
>> So far, "grub2-probe: error: cannot find a GRUB drive…" has nothing
>> to do with subvolumes - in this configuration, there are none.
>> Stay tuned. :)
>>
>> poma
> 
> Maybe re-run "grub2-install /dev/vda"
> 

The installation itself is not affected in this case, and has no
influence on the creation of the configuration file. ;)
/usr/sbin/grub2-install /dev/vda
Installation finished. No error reported.
/usr/sbin/grub2-install /dev/vdb
Installation finished. No error reported.

In fact with a very simple Gene's patch[1] the issue(rhbz#890955) was
solved.[2]

/usr/sbin/grub2-mkconfig -o /dev/null
Generating grub.cfg ...
Found theme: /boot/grub2/themes/system/theme.txt
Found linux image: /boot/vmlinuz-3.9.0-0.rc5.git0.2.fc20.i686.PAE
Found initrd image: /boot/initramfs-3.9.0-0.rc5.git0.2.fc20.i686.PAE.img
Found linux image: /boot/vmlinuz-0-rescue-e567d261136e65c44daec4be883d00f5
Found initrd image:
/boot/initramfs-0-rescue-e567d261136e65c44daec4be883d00f5.img
done

On the other side of the River Styx, the last referent
grub revision(4770) didn't solve this issue.[3]

/usr/local/sbin/grub-mkconfig -o /dev/null
Generating grub.cfg ...
/usr/local/sbin/grub-probe: error: cannot find a GRUB drive for /dev/vda
/dev/vdb.  Check your device.map.
Found linux image: /boot/vmlinuz-3.9.0-0.rc5.git0.2.fc20.i686.PAE
Found initrd image: /boot/initramfs-3.9.0-0.rc5.git0.2.fc20.i686.PAE.img
Found linux image: /boot/vmlinuz-0-rescue-e567d261136e65c44daec4be883d00f5
Found initrd image:
/boot/initramfs-0-rescue-e567d261136e65c44daec4be883d00f5.img
/usr/local/sbin/grub-probe: error: cannot find a GRUB drive for /dev/vda
/dev/vdb.  Check your device.map.
done

bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub
bzr log -m multi-device -p util/grub-mkconfig_lib.in
------------------------------------------------------------
revno: 4770
[…]
message:
  	* util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
  	handling of multi-device filesystems.
diff:
=== modified file 'util/grub-mkconfig_lib.in'
--- util/grub-mkconfig_lib.in	2012-12-28 06:57:17 +0000
+++ util/grub-mkconfig_lib.in	2013-03-24 12:11:19 +0000
@@ -115,9 +115,7 @@

 prepare_grub_to_access_device ()
 {
-  device="$1"
-
-  partmap="`"${grub_probe}" --device "${device}" --target=partmap`"
+  partmap="`"${grub_probe}" --device "$@" --target=partmap`"
   for module in ${partmap} ; do
     case "${module}" in
       netbsd | openbsd)
[…]

downstream 1 : 0 upstream :)


poma


[1] https://bugzilla.redhat.com/attachment.cgi?id=676998
[2] https://bugzilla.redhat.com/attachment.cgi?id=676998&action=diff
[3]
http://bzr.savannah.gnu.org/lh/grub/trunk/grub/revision/4770#util/grub-mkconfig_lib.in

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org




[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux