core: 查找 grub.cfg 范围添加 /efi

This commit is contained in:
bin456789 2023-08-02 01:02:38 +08:00
parent ec18858630
commit 8de512ce25
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -945,8 +945,11 @@ info 'create grub config'
if ! is_in_windows; then if ! is_in_windows; then
# 找出主配置文件含有menuentry|blscfg # 找出主配置文件含有menuentry|blscfg
# 如果是efi先搜索efi目录 # 如果是efi先搜索efi目录
# arch云镜像efi分区挂载在/efi
if is_efi; then if is_efi; then
efi_dir='/boot/efi' for dir in /boot/efi /efi; do
[ -d $dir ] && efi_dir+=" $dir"
done
fi fi
grub_cfg=$( grub_cfg=$(
find $efi_dir /boot/grub* \ find $efi_dir /boot/grub* \