mirror of
https://github.com/dockur/windows.git
synced 2026-08-03 12:37:20 +01:00
fix: Detect IA32-only EFI media as legacy (#1998)
This commit is contained in:
+13
-4
@@ -386,15 +386,24 @@ abortInstall() {
|
|||||||
|
|
||||||
local dir="$1"
|
local dir="$1"
|
||||||
local iso="$2"
|
local iso="$2"
|
||||||
local efi
|
local efi efi32 efi64
|
||||||
|
|
||||||
[[ "${iso,,}" == *".esd" ]] && exit 60
|
[[ "${iso,,}" == *".esd" ]] && exit 60
|
||||||
enabled "${UNPACK:-}" && 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
|
fi
|
||||||
|
|
||||||
if [ -n "$CUSTOM" ]; then
|
if [ -n "$CUSTOM" ]; then
|
||||||
|
|||||||
Reference in New Issue
Block a user