diff options
author | Leah Rowe <leah@libreboot.org> | 2024-06-01 17:01:11 +0100 |
---|---|---|
committer | Leah Rowe <leah@libreboot.org> | 2024-06-01 18:12:40 +0100 |
commit | 42b5b58d36e087fc8e66a0e9d14bf656a8363f54 (patch) | |
tree | 32a1fb5656e42ae53c17c35f53ae69bf42480834 | |
parent | b3d58f1edc24eadd615d5e1130b6e6abd703ac33 (diff) |
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 <leah@libreboot.org>
-rw-r--r-- | config/grub/config/grub.cfg | 3 |
1 files changed, 3 insertions, 0 deletions
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" |