From 00d3eea4342de7a81e91c16e3b3977f043cf2658 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Thu, 14 Dec 2023 19:03:59 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=BC=95=E5=AF=BC=20server=202016?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/trans.sh b/trans.sh index f3ce76c..d2f0d37 100644 --- a/trans.sh +++ b/trans.sh @@ -2029,7 +2029,12 @@ EOF # 复制安装脚本 # https://slightlyovercomplicated.com/2016/11/07/windows-pe-startup-sequence-explained/ mv /wim/setup.exe /wim/setup.exe.disabled - download $confhome/windows-setup.bat /wim/Windows/System32/startnet.cmd + + # 如果有重复的 Windows/System32 文件夹,会提示找不到 winload.exe 无法引导 + # win7 win10 是 Windows/System32 + # win2016 是 windows/system32 + system32_dir=$(ls -d /wim/*/*32) + download $confhome/windows-setup.bat $system32_dir/startnet.cmd # 提交修改 boot.wim wimunmount --commit /wim/