From 65ab51d514504bd173e52b2bafe5dd7f19ba3ad947e2bfd0c4429eaa5a512b3e Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Mon, 7 Jan 2013 14:17:20 +0000 Subject: [PATCH] Accepting request 147213 from Base:System - add support for chainloading another UEFI bootloader to 30_os-prober (bnc#775610) (forwarded request 147192 from arvidjaar) OBS-URL: https://build.opensuse.org/request/show/147213 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=53 --- 30_os-prober_UEFI_support.patch | 36 +++++++++++++++++++++++++++++++++ grub2.changes | 6 ++++++ grub2.spec | 2 ++ 3 files changed, 44 insertions(+) create mode 100644 30_os-prober_UEFI_support.patch 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