Verify the exact desktop install before image assembly
@@ -58,6 +58,10 @@ At ports revision `06d5cb5`, xkeyboard-config supplies the missing check depende
5858
5959The x86_64 desktop metapackage built against its exact signed runtime dependency set. The SDK audit checked 69 installed packages, 13,226 owned files and links, and 295 target ELFs. The archive `vinix-release-desktop-20261130-2-x86_64.pkg.tar.zst` has SHA-256 `0fe4f791a8e3f245e21403d294f1664b2484b235b37bdc8327e7c328ad7f7c8c`. See `foundation/desktop-x86-meta-sdk-01`, receipt SHA-256 `8ac10f979fecc102a2ed57fc3da2e0a5d7dd23db3c23c4c2733e957bc3876a22`. Restore the retired SDK from `foundation/archived-x86-desktop-meta-sdk-01/restore.tsv`, receipt SHA-256 `05744d206111223602063145c0e03b7086829db4279647d14617b33784e6b347`.
6060
61+At Vinix revision `7f173671`, a fresh x86_64 root installed `vinix-release-desktop` by name from the exact signed test feed. The audit verified 70 PGP-validated packages, 13,226 owned files and links, and 295 target ELFs. The install also checked ownership of the shell, PID 1, compiler tools, package manager and keyring. See `foundation/desktop-release-x86-01/cold-install.sha256`, SHA-256 `bfa9b83dc4c39815a6c21e8c2f6579baefdb461444266f516a008ea716188aa9`.
62+
63+To check the clean install before allocating disk space for the image, pass `--install-only` to `python3 tools/desktop-root.py "$arch" "$repo" "$auditor" "$work" "$fingerprint"`. When assembling the image later, run `python3 tools/stage-image.py "$arch" "$work/client" "$repo" "$work/image" "$auditor" "$fingerprint"` against that same audited client.
64+
6165The worker resolved all 81 packages in `foundation/xlib-combined-01/repo` into seven stages. For example, BusyBox follows musl and Linux headers, Xlib follows XCB and Xtrans, and the bitmap fonts follow mkfontscale. The order is in `foundation/xlib-order-01/order.tsv` with SHA-256 `51d1464a0a994328c40264105f8b95b7b22a8922cad177daef98e593d4a6930c`. The first signed ARM feed puts both musl and Linux headers in stage zero. Its signed, installed root passed the ownership and ELF audit for 1,165 files and links, including six target ELFs. The worker keeps that receipt in `arm/common/sdk-01-audit.log` with SHA-256 `b315f8d20f2d4c7737fd2e5078c33e12b6183d2ee86a22a9ba6db6852d68c59b`.
6266
6367## Running the shared worker
@@ -39,8 +39,9 @@ def build(args):
3939 for path in ("etc/alpine-release", "etc/apk", "lib/apk/db", "sbin/apk", "usr/sbin/apk", "usr/bin/apk"):
4040 if (root / path).exists() or (root / path).is_symlink():
4141 raise ValueError(f"unexpected Alpine package-management path /{path}")
42- run("stage", [sys.executable, Path(__file__).with_name("stage-image.py"), args.arch, client,
43- args.repo, work / "image", args.auditor, args.fingerprint])
42+ if not args.install_only:
43+ run("stage", [sys.executable, Path(__file__).with_name("stage-image.py"), args.arch, client,
44+ args.repo, work / "image", args.auditor, args.fingerprint])
4445 with (work / "receipts.sha256").open("x") as receipts:
4546 for path in sorted(work.glob("*.log")):
4647 with path.open("rb") as stream:
@@ -53,4 +54,6 @@ if __name__ == "__main__":
5354 for name in ("repo", "auditor", "work"):
5455 parser.add_argument(name, type=lambda p: Path(p).resolve())
5556 parser.add_argument("fingerprint", help="the distributor's fingerprint supplied independently of the feed")
57+ parser.add_argument("--install-only", action="store_true",
58+ help="prepare the audited client for a separate image assembly")
5659 build(parser.parse_args())