From 38bf9e2c8f03de287c50bb6b5c1909f0857d6453 Mon Sep 17 00:00:00 2001 From: SOSMLG <117748270+SOSMLG@users.noreply.github.com> Date: Mon, 23 Nov 2026 11:33:09 -0800 Subject: [PATCH] docs: add single-installer consolidation plan --- docs/CONSOLIDATION-PLAN.md | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 docs/CONSOLIDATION-PLAN.md diff --git a/docs/CONSOLIDATION-PLAN.md b/docs/CONSOLIDATION-PLAN.md new file mode 100644 index 0000000..769b43b --- /dev/null +++ b/docs/CONSOLIDATION-PLAN.md @@ -0,0 +1,28 @@ +# Consolidation plan: single installer (daily + IoT) + +Status: planned. Front door already unified (`Install.ps1` + `Setup.cmd`). + +## Goal +One `.ps1` installer and one `.cmd`, supporting both daily and IoT profiles. + +## Current state +- `Install.ps1` (root) routes by `-Profile daily|iot`. +- `scripts/Install.ps1` implements daily (modular, stateful). +- `install-Win-Iot.ps1` implements IoT (monolithic, 64 KB). +- `Validate.ps1` (root) routes by profile. + +## Phases +1. Extract IoT phases into `scripts/modules/iot/*.ps1` mirroring daily's module layout. +2. Add an `-Profile`-aware module selector in `scripts/Install.ps1`; IoT runs its module set. +3. Port IoT state/idempotency helpers to the shared `scripts/lib/Common.ps1`. +4. Delete `install-Win-Iot.ps1`; update ventoy/docs (already front-door routed). +5. Merge daily + IoT validation into `scripts/Validate.ps1`. +6. Update `AGENTS.md`, `README.md`, `QUICKSTART.md`, `docs/CLI.md`. + +## Guardrails +- No behavior change per phase; verify with `Install.ps1 -Profile

-DryRun` and `Validate.ps1 -Profile

`. +- One phase per PR; keep diffs small. +- Do not remove `install-Win-Iot.ps1` until phase 4 tests pass. + +## First step (phase 1) +Create `scripts/modules/iot/` with one file per IoT phase, sourced by the future unified installer. No wiring yet. \ No newline at end of file