feat: Centralize platform and image state checks (#2139)

This commit is contained in:
Kroese
2026-08-14 11:46:00 +02:00
committed by GitHub
parent 39862b25b5
commit 1066895aca
6 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -346,7 +346,7 @@ sendKey() {
needsBootKey() {
[ ! -s "$BOOT" ] && return 1
hasImage "$BOOT" || return 1
hasCompletedInstall && return 1
supportsBootKey "$DETECTED" || return 1
@@ -363,7 +363,7 @@ bootKeyReady() {
return $?
fi
if [[ "${PLATFORM,,}" == "arm64" ]]; then
if isPlatform "arm64"; then
grep -Eq "$UEFI_USB_BOOT_PATTERN" "$QEMU_PTY"
else
grep -Eq "$UEFI_DVD_BOOT_PATTERN" "$QEMU_PTY"