mirror of
https://src.fedoraproject.org/rpms/grub2.git
synced 2024-11-24 06:22:43 +00:00
7e98da058f
This change reorganizes and cleanups our patches to reduce the patch number from 314 patches to 187. That's achieved by dropping patches that are later reverted and squashing fixes for earlier patches that introduced features. There are no code changes and the diff with upstream is the same before and after the cleanup. Having fewer patches makes easier to manage the patchset and also will ease to rebase them on top of the latest grub-2.04 release. Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
46 lines
1.3 KiB
Diff
46 lines
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Matthew Garrett <matthew.garrett@nebula.com>
|
|
Date: Wed, 12 Jun 2013 11:51:49 -0400
|
|
Subject: [PATCH] Add support for UEFI operating systems returned by 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 | 21 ++++++++++++++++++---
|
|
1 file changed, 18 insertions(+), 3 deletions(-)
|
|
|
|
diff --git a/util/grub.d/30_os-prober.in b/util/grub.d/30_os-prober.in
|
|
index 515a68c7aa0..9b8f5968e2d 100644
|
|
--- a/util/grub.d/30_os-prober.in
|
|
+++ b/util/grub.d/30_os-prober.in
|
|
@@ -328,8 +328,23 @@ EOF
|
|
EOF
|
|
;;
|
|
*)
|
|
- # 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
|