feat: Detect Windows Boot Manager (#5)

This commit is contained in:
Kroese 2024-02-05 20:52:56 +01:00 committed by GitHub
parent bb4c678a5a
commit 1c2c8c5e14
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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..."