chore(setup): install Windows-image tooling for deploy-win
Add aria2 + wimtools (wimlib-imagex) + xorriso + genisoimage + cabextract + chntpw to setup-host-linux.sh (Step 3) — the UUP dump → ISO conversion and the no-prompt ISO repack that `ci template deploy-win` needs. Also create the <CI_ROOT>/iso cache dir in the layout step.
This commit is contained in:
+16
-2
@@ -181,14 +181,28 @@ if ! command -v setfacl &>/dev/null; then
|
||||
apt-get install -y acl -qq
|
||||
fi
|
||||
|
||||
# Tooling immagini Windows (template deploy-win): scarica/build ISO da UUP dump
|
||||
# e patch ISO (inject autounattend + no-prompt boot) via xorriso.
|
||||
# aria2 (aria2c) — download paralleli dei file UUP dalla CDN Microsoft
|
||||
# wimtools — wimlib-imagex, conversione UUP → install.wim/ISO
|
||||
# xorriso/genisoimage — repack ISO bootable / build seed ISO (deploy-linux)
|
||||
# cabextract — estrazione pacchetti .cab durante la conversione UUP
|
||||
# chntpw — richiesto dal converter UUP (uup_download_linux.sh)
|
||||
for pkg in aria2 wimtools xorriso genisoimage cabextract chntpw; do
|
||||
if ! dpkg -s "$pkg" &>/dev/null; then
|
||||
echo " Installazione pacchetto $pkg..."
|
||||
apt-get install -y "$pkg" -qq
|
||||
fi
|
||||
done
|
||||
|
||||
mkdir -p \
|
||||
"$CI_ROOT"/{build-vms,artifacts,templates,keys,logs,runner} \
|
||||
"$CI_ROOT"/{build-vms,artifacts,templates,keys,logs,runner,iso} \
|
||||
"$OPT_CI" \
|
||||
/etc/ci/keys
|
||||
|
||||
chown -R "$CI_USER:$CI_USER" "$CI_ROOT" "$OPT_CI"
|
||||
chmod 750 "$CI_ROOT" "$OPT_CI"
|
||||
for d in build-vms artifacts templates keys logs runner; do
|
||||
for d in build-vms artifacts templates keys logs runner iso; do
|
||||
chmod 750 "$CI_ROOT/$d"
|
||||
done
|
||||
chmod 700 /etc/ci/keys
|
||||
|
||||
Reference in New Issue
Block a user