fix: Improve failed legacy boot detection (#2146)

This commit is contained in:
Kroese
2026-08-15 16:46:35 +02:00
committed by GitHub
parent be032648e8
commit 603bd079fc
+2
View File
@@ -44,6 +44,7 @@ bootStatus() {
if grep -Fq \
-e "No bootable device." \
-e "BOOTMGR is missing" \
-e "Replace the disk, and then press any key" \
-e "The following file is missing or corrupted:" \
-e "Type the name of the Windows loader" \
<<< "$recent"; then
@@ -253,6 +254,7 @@ legacyBootReady() {
grep -Fq "Loading FreeLoader..." <<< "$recent" && return 0
grep -Fq "No bootable device." <<< "$recent" && return 1
grep -Fq "BOOTMGR is missing" <<< "$recent" && return 1
grep -Fq "Replace the disk, and then press any key" <<< "$recent" && return 1
grep -Fq "Boot failed: not a bootable disk" <<< "$recent" && return 1
grep -Fq "Boot failed: could not read the boot disk" <<< "$recent" && return 1
grep -Fq "The following file is missing or corrupted:" <<< "$recent" && return 1