Wax/Trace: per-bay FormTracePak version via bay-config.csv

Bays span 7 FormTracePak versions (5.510 - 6.213) and 3 sub-versions
(AVANT / CV-4500 / CV-3200), each with a unique licensing USER ID. Previously
all bays got v6.213 with no model/USER hint to the tech.

- bay-config.csv: 15 rows mapping asset_tag to ftpak_version + model + user_id.
- resolve-bay-config.ps1: WinPE-runnable resolver. Looks up the asset and
  writes version.txt / model.txt / userid.txt / bay-info.txt under
  W:\Enrollment\waxtrace\.
- startnet.cmd: xcopy WaxTrace bundle minus formtracepak\, invoke the
  resolver with %MACHINENUM%, then cherry-pick only the matching
  FORMTRACEPAK-V<ver>.iso (~2 GB local vs ~12 GB if all were staged).
- 09-Setup-WaxAndTrace.ps1: read the per-bay files, mount the right ISO,
  drop <asset>-FTPak-install-info.txt on SupportUser's desktop, and print
  a banner with MODEL + USER ID so the tech has them top-of-mind when
  Setup.exe dialogs come up.
- sync-waxtrace.sh: loop over all FORMTRACEPAK-V*.iso instead of hard-coding
  v6.213; also push bay-config.csv + resolve-bay-config.ps1 to the share.
This commit is contained in:
cproudlock
2026-05-24 07:04:15 -04:00
parent 00d4105956
commit 54dddaa760
5 changed files with 273 additions and 53 deletions

View File

@@ -64,17 +64,33 @@ cp "$WAXTRACE_DIR/09-Setup-WaxAndTrace.ps1" "$STAGE/"
if [ -f "$WAXTRACE_DIR/select-waxtrace-asset.ps1" ]; then
cp "$WAXTRACE_DIR/select-waxtrace-asset.ps1" "$STAGE/"
fi
# Bay-config CSV + resolver. startnet.cmd invokes resolve-bay-config.ps1 in
# WinPE to pick the right FTPak version per bay. resolver reads bay-config.csv
# from this share (or W:\WaxTrace-Install\) and writes
# W:\Enrollment\waxtrace\{version,model,userid}.txt.
if [ -f "$WAXTRACE_DIR/bay-config.csv" ]; then
cp "$WAXTRACE_DIR/bay-config.csv" "$STAGE/"
fi
if [ -f "$WAXTRACE_DIR/resolve-bay-config.ps1" ]; then
cp "$WAXTRACE_DIR/resolve-bay-config.ps1" "$STAGE/"
fi
cp "$WAXTRACE_DIR/captured-binary/prereqs/"*.exe "$STAGE/prereqs/"
# FormTracePak v6.213 vendor installer ISO (2 GB). Pulled from
# /home/camp/pxe-images/iso/. Bay xcopies + Mount-DiskImage's at imaging
# time. Replaces the legacy captured/ replay path; the old captured-binary/
# dir remains in the repo as a manual fallback but is no longer pushed.
FTPAK_ISO="${FTPAK_ISO:-/home/camp/pxe-images/iso/FORMTRACEPAK-V6.213.iso}"
if [ -f "$FTPAK_ISO" ]; then
cp "$FTPAK_ISO" "$STAGE/formtracepak/"
# FormTracePak vendor installer ISOs - all available versions get pushed.
# startnet.cmd cherry-picks the matching FORMTRACEPAK-V<ver>.iso based on
# bay-config.csv lookup, xcopies just that one to the local disk (~2 GB).
# Total on PXE share: ~12 GB; per-bay xcopy: ~2 GB.
FTPAK_ISO_DIR="${FTPAK_ISO_DIR:-/home/camp/pxe-images/iso}"
FTPAK_COUNT=0
for iso in "$FTPAK_ISO_DIR"/FORMTRACEPAK-V*.iso; do
[ -f "$iso" ] || continue
cp "$iso" "$STAGE/formtracepak/"
FTPAK_COUNT=$((FTPAK_COUNT+1))
done
if [ "$FTPAK_COUNT" -eq 0 ]; then
echo "WARNING: no FORMTRACEPAK-V*.iso in $FTPAK_ISO_DIR - bays cannot install at imaging time."
else
echo "WARNING: FormTracePak ISO not found at $FTPAK_ISO - bays cannot install at imaging time."
echo "Staged $FTPAK_COUNT FormTracePak version ISO(s) from $FTPAK_ISO_DIR"
fi
# Cal ISOs - one per wax/trace bay