From 57220ccc397dd2db3e46e976a4471706fd92f24a Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 9 Jan 2025 23:59:27 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E9=98=B2=E6=AD=A2=20efi=20=E6=9C=BA?= =?UTF-8?q?=E5=99=A8=E5=AE=89=E8=A3=85=2032=20=E4=BD=8D=20windows?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/trans.sh b/trans.sh index 9384a34..071b08b 100644 --- a/trans.sh +++ b/trans.sh @@ -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