1
0
mirror of https://github.com/dockur/windows.git synced 2026-07-27 21:42:36 +07:00

fix: Detect IA32-only EFI media as legacy (#1998)

This commit is contained in:
Kroese
2026-07-26 21:06:40 +02:00
committed by GitHub
parent f6fcb46958
commit 5287b0ba85
+13 -4
View File
@@ -386,15 +386,24 @@ abortInstall() {
local dir="$1"
local iso="$2"
local efi
local efi efi32 efi64
[[ "${iso,,}" == *".esd" ]] && exit 60
enabled "${UNPACK:-}" && exit 60
efi=$(find "$dir" -maxdepth 1 -type d -iname efi -print -quit)
if [[ "${PLATFORM,,}" == "x64" ]]; then
efi=$(find "$dir" -maxdepth 1 -type d -iname efi -print -quit)
efi32=$(find "$dir" -maxdepth 3 -type f \
-ipath '*/efi/boot/bootia32.efi' -print -quit)
efi64=$(find "$dir" -maxdepth 3 -type f \
-ipath '*/efi/boot/bootx64.efi' -print -quit)
if [ -z "$efi" ] ||
{ [ -n "$efi32" ] && [ -z "$efi64" ]; }; then
BOOT_MODE="windows_legacy"
fi
if [ -z "$efi" ]; then
[[ "${PLATFORM,,}" == "x64" ]] && BOOT_MODE="windows_legacy"
fi
if [ -n "$CUSTOM" ]; then