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>audit2-merge1
parent
8bc7e3a539
commit
71a17efc06
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue