diff --git a/30_os-prober_UEFI_support.patch b/30_os-prober_UEFI_support.patch new file mode 100644 index 0000000..49dfe9a --- /dev/null +++ b/30_os-prober_UEFI_support.patch @@ -0,0 +1,36 @@ +From: Andrey Borzenkov +Date: Fri Jan 4 09:46:56 UTC 2013 +Subject: properly quote translated strings in grub.cfg + +References: bnc#775610 +Patch-Mainline: no + +Add support for chainloading another bootloader on UEFI systems. +This requires additional os-prober support to be actually useful. +Index: grub-2.00/util/grub.d/30_os-prober.in +=================================================================== +--- grub-2.00.orig/util/grub.d/30_os-prober.in ++++ grub-2.00/util/grub.d/30_os-prober.in +@@ -144,6 +144,22 @@ EOF + } + 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 <= 1140 @@ -242,6 +243,7 @@ mv docs/grub.texi docs/grub2.texi %patch22 -p1 %patch23 -p1 %patch24 -p1 +%patch25 -p1 cd .. # README.openSUSE