From 976c4b1caee0089c4228b25da8c2f81b54eb0dba Mon Sep 17 00:00:00 2001 From: Simone Date: Mon, 8 Jun 2026 23:21:02 +0200 Subject: [PATCH] chore(setup): install Windows-image tooling for deploy-win MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 /iso cache dir in the layout step. --- setup-host-linux.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/setup-host-linux.sh b/setup-host-linux.sh index 1f478c4..151f86c 100755 --- a/setup-host-linux.sh +++ b/setup-host-linux.sh @@ -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