feat: Detect Windows Boot Manager

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

View file

@ -119,7 +119,7 @@ _graceful_shutdown() {
local remove_iso="" local remove_iso=""
if [ ! -f "$STORAGE/windows.boot" ] && [ -f "$QEMU_PTY" ]; then 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" [ -f "$STORAGE/$BASE" ] && remove_iso="y"
else else
info "Cannot send ACPI signal during Windows setup, aborting..." info "Cannot send ACPI signal during Windows setup, aborting..."