feat: Improved installation (#483)

This commit is contained in:
Kroese 2024-05-10 18:21:41 +02:00 committed by GitHub
parent 5a000c1f9e
commit f7986f57ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 199 additions and 94 deletions

View file

@ -29,8 +29,10 @@ boot() {
if [ -s "$QEMU_PTY" ]; then
if [ "$(stat -c%s "$QEMU_PTY")" -gt 7 ]; then
info "Windows started succesfully, visit http://localhost:8006/ to view the screen..."
return 0
if ! grep -Fq "BOOTMGR is missing" "$QEMU_PTY"; then
info "Windows started succesfully, visit http://localhost:8006/ to view the screen..."
return 0
fi
fi
fi
@ -48,7 +50,9 @@ ready() {
local bios="Booting from Hard"
last=$(grep "^Booting.*" "$QEMU_PTY" | tail -1)
if [[ "${last,,}" == "${bios,,}"* ]]; then
return 0
if ! grep -Fq "BOOTMGR is missing" "$QEMU_PTY"; then
return 0
fi
fi
return 1
fi