From 603bd079fca702120ebbc9bd32b2635a7d6f8443 Mon Sep 17 00:00:00 2001 From: Kroese Date: Sat, 15 Aug 2026 16:46:35 +0200 Subject: [PATCH] fix: Improve failed legacy boot detection (#2146) --- src/power.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/power.sh b/src/power.sh index 0f1b3423..f6400110 100644 --- a/src/power.sh +++ b/src/power.sh @@ -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