mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
windows: 防止 efi 机器安装 32 位 windows
This commit is contained in:
parent
d32d52d64e
commit
57220ccc39
5
trans.sh
5
trans.sh
@ -4192,6 +4192,11 @@ install_windows() {
|
|||||||
error_and_exit "The machine is $(uname -m), but the iso is $arch_wim."
|
error_and_exit "The machine is $(uname -m), but the iso is $arch_wim."
|
||||||
fi
|
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
|
if [ -e /iso/sources/install.esd ]; then
|
||||||
iso_install_wim=/iso/sources/install.esd
|
iso_install_wim=/iso/sources/install.esd
|
||||||
install_wim=/os/installer/sources/install.esd
|
install_wim=/os/installer/sources/install.esd
|
||||||
|
Loading…
x
Reference in New Issue
Block a user