Created attachment 353600 [details, diff] grub-2.00-os-prober-EFI-support.patch Currently grub2-mkconfig's 30_os-prober script cannot find the MS windows bootloader if it is installed on the EFI system partition. I've attached a patch from debian which adds this support, it will depend on a bump to >=sys-boot/os-prober-1.58, but it should not affect backwards compatibility with older os-prober.
I would rather see this applied upstream first. http://www.gnu.org/software/grub/grub-development.html
http://lists.gnu.org/archive/html/grub-devel/2013-05/msg00108.html I don't know where we go from here.
This is in current upstream bzr trunk but I have no idea how to pinpoint when the change happened. They do not seem to have a web interface and I don't know my way around bzr from command-line. # bzr branch http://bzr.savannah.gnu.org/r/grub/trunk/grub # grep "efi)" -B3 -A18 grub/util/grub.d/30_os-prober.in } EOF ;; efi) EFIPATH=${DEVICE#*@} DEVICE=${DEVICE%@*} onstr="$(gettext_printf "(on %s)" "${DEVICE}")" cat << EOF menuentry '$(echo "${LONGNAME} $onstr" | grub_quote)' --class windows --class os \$menuentry_id_option 'osprober-efi-$(grub_get_device_id "${DEVICE}")' { EOF save_default_entry | sed -e "s/^/\t/" prepare_grub_to_access_device ${DEVICE} | sed -e "s/^/\t/" cat <<EOF chainloader ${EFIPATH} } EOF ;; linux) if [ "x$BTRFS" = "xbtrfs" ]; then LINUXPROBED="`linux-boot-prober btrfs ${BTRFSuuid} ${BTRFSsubvol} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`" #
Found it, sorry for all this noise: ------------------------------------------------------------ revno: 5022 committer: Andrey Borzenkov <arvidjaar@gmail.com> branch nick: grub timestamp: Fri 2013-05-31 20:29:03 +0400 message: * util/grub.d/30_os-prober.in: Add support for probing EFI System Partition (as of os-prober 1.58). ------------------------------------------------------------
Thank you for finding that!
+*grub-2.00-r4 (21 Jul 2013) + + 21 Jul 2013; Mike Gilbert <floppym@gentoo.org> + +files/grub-2.00-os-prober-efi-system.patch, +grub-2.00-r4.ebuild, + grub-9999.ebuild: + Add support for probing EFI system partition, bug 477314 by Ben Kohler. + Respect bashcompdir, bug 477392 by Alphat-PC.