Skip to content

Commit

Permalink
feat: Detect Windows Boot Manager (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
kroese authored Feb 5, 2024
1 parent bb4c678 commit 1c2c8c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/power.sh
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ _graceful_shutdown() {
local remove_iso=""

if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then
if grep -Fq "Windows Boot Manager" "$QEMU_PTY"; then
if grep -Fq "starting Boot0002" "$QEMU_PTY"; then
[ -f "$STORAGE/$BASE" ] && remove_iso="y"
else
info "Cannot send ACPI signal during Windows setup, aborting..."
Expand Down

0 comments on commit 1c2c8c5

Please sign in to comment.