2016-03-04 20:28:21 +00:00
|
|
|
From 2f3c6669c5f8d0255e6103508eb71667d8dec158 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
|
2016-03-04 20:28:21 +00:00
|
|
|
Subject: [PATCH 10/85] 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.
|
|
|
|
---
|
2015-07-22 13:44:51 +00:00
|
|
|
util/grub.d/30_os-prober.in | 21 ++++++++++++++++++---
|
|
|
|
1 file changed, 18 insertions(+), 3 deletions(-)
|
2013-06-12 19:24:37 +00:00
|
|
|
|
|
|
|
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
|
2016-03-04 18:32:29 +00:00
|
|
|
index 515a68c..9b8f596 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
|
2016-03-04 18:32:29 +00:00
|
|
|
@@ -328,8 +328,23 @@ EOF
|
2013-06-12 19:24:37 +00:00
|
|
|
EOF
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
- # TRANSLATORS: %s is replaced by OS name.
|
2015-07-22 13:44:51 +00:00
|
|
|
- gettext_printf "%s is not yet supported by grub-mkconfig.\n" " ${LONGNAME}" >&2
|
2013-06-12 19:24:37 +00:00
|
|
|
- ;;
|
|
|
|
+ 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
|
|
|
|
--
|
2016-03-04 18:32:29 +00:00
|
|
|
2.5.0
|
2013-06-12 19:24:37 +00:00
|
|
|
|