summaryrefslogtreecommitdiff
path: root/sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch
diff options
context:
space:
mode:
Diffstat (limited to 'sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch')
-rw-r--r--sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch b/sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch
new file mode 100644
index 00000000..7e0888a8
--- /dev/null
+++ b/sys-boot/grub/files/grub-2.00-os-prober-efi-system.patch
@@ -0,0 +1,27 @@
+=== modified file 'util/grub.d/30_os-prober.in'
+--- util/grub.d/30_os-prober.in 2013-04-19 08:08:46 +0000
++++ util/grub.d/30_os-prober.in 2013-05-31 16:29:03 +0000
+@@ -149,6 +149,22 @@
+ }
+ 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 <<EOF
++ chainloader ${EFIPATH}
++}
++EOF
++ ;;
+ linux)
+ if [ "x$BTRFS" = "xbtrfs" ]; then
+ LINUXPROBED="`linux-boot-prober btrfs ${BTRFSuuid} ${BTRFSsubvol} 2> /dev/null | tr ' ' '^' | paste -s -d ' '`"
+