2014-05-05 17:17:26 +00:00
|
|
|
From 57af230410edac066aa54ee1d008ead9e0405039 Mon Sep 17 00:00:00 2001
|
2013-06-12 19:24:37 +00:00
|
|
|
From: Matthew Garrett <matthew.garrett@nebula.com>
|
|
|
|
Date: Wed, 12 Jun 2013 11:51:49 -0400
|
2014-05-05 17:17:26 +00:00
|
|
|
Subject: [PATCH 089/103] Add support for UEFI operating systems returned by
|
2013-06-12 19:24:37 +00:00
|
|
|
os-prober
|
|
|
|
|
|
|
|
os-prober returns UEFI operating systems in the form:
|
|
|
|
|
|
|
|
path:long-name:name
|
|
|
|
|
|
|
|
where path is the path under the EFI directory on the ESP. This is in
|
|
|
|
contrast to legacy OSes, where path is the device string. Handle this case.
|
|
|
|
---
|
|
|
|
util/grub.d/30_os-prober.in | 22 ++++++++++++++++++----
|
|
|
|
1 file changed, 18 insertions(+), 4 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
|
2014-03-13 18:02:22 +00:00
|
|
|
index 7cf8487..390bb0e 100644
|
2013-06-12 19:24:37 +00:00
|
|
|
--- a/util/grub.d/30_os-prober.in
|
|
|
|
+++ b/util/grub.d/30_os-prober.in
|
2014-01-06 16:39:16 +00:00
|
|
|
@@ -319,9 +319,23 @@ EOF
|
2013-06-12 19:24:37 +00:00
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
- echo -n " "
|
|
|
|
- # TRANSLATORS: %s is replaced by OS name.
|
|
|
|
- gettext_printf "%s is not yet supported by grub-mkconfig.\n" "${LONGNAME}" >&2
|
|
|
|
- ;;
|
|
|
|
+ case ${DEVICE} in
|
|
|
|
+ *.efi)
|
|
|
|
+ cat << EOF
|
|
|
|
+menuentry '$(echo "${LONGNAME}" | grub_quote)' {
|
|
|
|
+EOF
|
|
|
|
+ save_default_entry | grub_add_tab
|
|
|
|
+ cat << EOF
|
|
|
|
+ chainloader /EFI/${DEVICE}
|
|
|
|
+ boot
|
|
|
|
+}
|
|
|
|
+EOF
|
|
|
|
+ ;;
|
|
|
|
+ *)
|
|
|
|
+ echo -n " "
|
|
|
|
+ # TRANSLATORS: %s is replaced by OS name.
|
|
|
|
+ gettext_printf "%s is not yet supported by grub-mkconfig.\n" "${LONGNAME}" >&2
|
|
|
|
+ ;;
|
|
|
|
+ esac
|
|
|
|
esac
|
|
|
|
done
|
|
|
|
--
|
2014-05-05 17:17:26 +00:00
|
|
|
1.9.0
|
2013-06-12 19:24:37 +00:00
|
|
|
|