From 8de512ce25928c940883365f732b1b7a3755aae5 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Wed, 2 Aug 2023 01:02:38 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E6=9F=A5=E6=89=BE=20grub.cfg=20?= =?UTF-8?q?=E8=8C=83=E5=9B=B4=E6=B7=BB=E5=8A=A0=20/efi?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- reinstall.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index f7f2af7..66911a4 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -945,8 +945,11 @@ info 'create grub config' if ! is_in_windows; then # 找出主配置文件(含有menuentry|blscfg) # 如果是efi,先搜索efi目录 + # arch云镜像efi分区挂载在/efi if is_efi; then - efi_dir='/boot/efi' + for dir in /boot/efi /efi; do + [ -d $dir ] && efi_dir+=" $dir" + done fi grub_cfg=$( find $efi_dir /boot/grub* \