mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 20:47:12 +01:00
feat: Abort QEMU on detected boot failure (#2018)
This commit is contained in:
+7
-9
@@ -64,27 +64,25 @@ waitForBoot() {
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
case "$status" in
|
case "$status" in
|
||||||
0)
|
0) echo
|
||||||
|
|
||||||
if [[ "${DISPLAY,,}" == "web" ]] && ! disabled "${WEB:-Y}"; then
|
if [[ "${DISPLAY,,}" == "web" ]] && ! disabled "${WEB:-Y}"; then
|
||||||
info "$(app) started successfully, $screen"
|
info "$(app) started successfully, $screen"
|
||||||
else
|
else
|
||||||
info "$(app) started successfully."
|
info "$(app) started successfully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
return 0 ;;
|
echo && return 0 ;;
|
||||||
2)
|
|
||||||
if [[ "${DISPLAY,,}" == "web" ]] && ! disabled "${WEB:-Y}"; then
|
|
||||||
warn "$(app) could not boot, $screen"
|
|
||||||
else
|
|
||||||
warn "$(app) could not boot."
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
2) error "$(app) could not boot, aborting..."
|
||||||
|
terminateQemu
|
||||||
return 0 ;;
|
return 0 ;;
|
||||||
|
|
||||||
esac
|
esac
|
||||||
|
|
||||||
(( SECONDS >= deadline )) && break
|
(( SECONDS >= deadline )) && break
|
||||||
|
|
||||||
sleep 0.1
|
sleep 0.25
|
||||||
done
|
done
|
||||||
|
|
||||||
! isAlive "$pid" && return 0
|
! isAlive "$pid" && return 0
|
||||||
|
|||||||
Reference in New Issue
Block a user