From 9425de50781883f4247edb123959b2ccbe42f1d9 Mon Sep 17 00:00:00 2001 From: bin456789 Date: Sat, 20 Jan 2024 16:04:06 +0800 Subject: [PATCH] =?UTF-8?q?windows:=20=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95?= =?UTF-8?q?=E5=AE=89=E8=A3=85=E8=AF=84=E4=BC=B0=E7=89=88=20iso?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- trans.sh | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/trans.sh b/trans.sh index aa9e1ac..2dc3b77 100644 --- a/trans.sh +++ b/trans.sh @@ -2024,6 +2024,15 @@ install_windows() { sed -i "s|%installto_partitionid%|1|" /tmp/autounattend.xml fi + # 评估版 iso 需要删除 autounattend.xml 里面的 + # 否则会出现 Windows Cannot find Microsoft software license terms + # shellcheck disable=SC2010 + if ei_cfg="$(ls -d /os/installer/sources/* | grep -i ei.cfg)"; then + if grep -i EVAL "$ei_cfg"; then + sed -i '//d' /tmp/autounattend.xml + fi + fi + # 挂载 boot.wim mkdir -p /wim wimmountrw $boot_wim 2 /wim/