diff options
author | Joerg Schirottke <master@kanotix.com> | 2014-05-05 22:10:42 +0200 |
---|---|---|
committer | Holger Paradies <retabell@gmx.de> | 2014-05-05 22:35:46 +0200 |
commit | c7937df15b086ec03a0cb10dda805343731d3016 (patch) | |
tree | 323664ef7a8b8a55bd6e184be26a927336da7d27 /config | |
parent | 4e5be70ff7eaa6d49d80dcd82122a474d09c4f34 (diff) | |
download | kanotix-c7937df15b086ec03a0cb10dda805343731d3016.zip kanotix-c7937df15b086ec03a0cb10dda805343731d3016.tar.gz |
grub.cfg: search for grub.efi and gummiboot.efi
Diffstat (limited to 'config')
-rw-r--r-- | config/binary_grub/grub.cfg | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/config/binary_grub/grub.cfg b/config/binary_grub/grub.cfg index c1d55d6..ead8e6c 100644 --- a/config/binary_grub/grub.cfg +++ b/config/binary_grub/grub.cfg @@ -114,6 +114,15 @@ else } fi insmod regexp + for grub in (*)/EFI/*/grub*.efi; do + if [ -e "$grub" ]; then + regexp --set=device '(\(.*\))' "$grub" + menuentry "Boot GRUB UEFI loader from device $device" "$device" "$grub" { + set root="$2" + chainloader "$3" + } + fi + done for bootmgfw in (*)/EFI/Microsoft/Boot/bootmgfw.efi; do if [ -e "$bootmgfw" ]; then regexp --set=device '(\(.*\))' "$bootmgfw" @@ -123,5 +132,14 @@ else } fi done + for gummiboot in (*)/EFI/gummiboot/gummiboot*.efi; do + if [ -e "$gummiboot" ]; then + regexp --set=device '(\(.*\))' "$gummiboot" + menuentry "Boot Gummiboot UEFI loader from device $device" "$device" "$gummiboot" { + set root="$2" + chainloader "$3" + } + fi + done fi |