mirror of
https://github.com/dockur/windows.git
synced 2026-08-24 15:48:59 +01:00
feat: Centralize platform and image state checks (#2139)
This commit is contained in:
+2
-2
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user