windows: vista/2008 安装时需要 boot.wim

This commit is contained in:
bin456789 2024-10-31 18:15:07 +08:00
parent 619671f77c
commit a12dad5a08
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -4725,6 +4725,12 @@ install_windows() {
cp /os/boot.wim /os/installer/sources/boot.wim
fi
# vista 安装时需要 boot.wim原因见上面
if [ "$nt_ver" = 6.0 ] &&
! [ -e /os/installer/sources/boot.wim ]; then
cp /os/boot.wim /os/installer/sources/boot.wim
fi
# windows 7 没有 invoke-webrequest
# installer分区盘符不一定是D盘
# 所以复制 resize.bat 到 install.wim