From 42b5b58d36e087fc8e66a0e9d14bf656a8363f54 Mon Sep 17 00:00:00 2001 From: Leah Rowe Date: Sat, 1 Jun 2024 17:01:11 +0100 Subject: grub.cfg: scan grub.cfg from ESP we already supported syslinux but not grub support grub by scanning for the most common paths, based on the most popular distros we don't hardcode this with * because it slows down the boot, and in practise many distros still use the same grub.cfg location as in BIOS systems (the EFI one is often just a link to the BIOS one) Signed-off-by: Leah Rowe --- config/grub/config/grub.cfg | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/grub/config/grub.cfg b/config/grub/config/grub.cfg index acb9da2c..66642711 100644 --- a/config/grub/config/grub.cfg +++ b/config/grub/config/grub.cfg @@ -75,6 +75,9 @@ function try_user_config { for dir in boot grub grub2 boot/grub boot/grub2 @/boot @/grub @/grub2 @/boot/grub @/boot/grub2; do really_try_user_config "${1}" "${dir}" done + for dir in ubuntu debian redhat; do + really_try_user_config "${1}" "EFI/${dir}" + done } function search_grub { echo -n "Attempting to load grub.cfg from '${1}' devices" -- cgit v1.2.1