windows: 防止 efi 机器安装 32 位 windows

This commit is contained in:
bin456789 2025-01-09 23:59:27 +08:00
parent d32d52d64e
commit 57220ccc39
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -4192,6 +4192,11 @@ install_windows() {
error_and_exit "The machine is $(uname -m), but the iso is $arch_wim."
fi
# efi 机器不能安装 32 位 windows
if is_efi && [ "$arch_wim" = x86 ]; then
error_and_exit "EFI machine can't install 32-bit Windows."
fi
if [ -e /iso/sources/install.esd ]; then
iso_install_wim=/iso/sources/install.esd
install_wim=/os/installer/sources/install.esd