From dd1b3abbfde0a66da779daa040430c0be7e61d79 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sun, 23 Mar 2025 10:15:48 +0800 Subject: [PATCH] =?UTF-8?q?core:=20=E4=BF=AE=E5=A4=8D=20efi=20=E6=9D=A1?= =?UTF-8?q?=E7=9B=AE=20inactive=20=E6=97=B6=20(=E6=B2=A1=E6=9C=89*?= =?UTF-8?q?=E7=AC=A6=E5=8F=B7)=20=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://manpages.debian.org/unstable/efibootmgr/efibootmgr.8.en.html#Displaying_the_current_settings_(must_be_root): --- reinstall.sh | 1 + trans.sh | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/reinstall.sh b/reinstall.sh index 8be31e6..fb48c66 100644 --- a/reinstall.sh +++ b/reinstall.sh @@ -2588,6 +2588,7 @@ grep_efi_entry() { grep -E '^Boot[0-9a-fA-F]{4}' } +# trans.sh 有同名方法 grep_efi_index() { awk '{print $1}' | sed -e 's/Boot//' -e 's/\*//' } diff --git a/trans.sh b/trans.sh index 412e178..9950c65 100644 --- a/trans.sh +++ b/trans.sh @@ -822,8 +822,9 @@ del_invalid_efi_entry() { done < <(efibootmgr | grep 'HD(.*,GPT,') } +# reinstall.sh 有同名方法 grep_efi_index() { - awk -F '*' '{print $1}' | sed 's/Boot//' + awk '{print $1}' | sed -e 's/Boot//' -e 's/\*//' } # 某些机器可能不会回落到 bootx64.efi