From ca73b1f6eef64bb89455d23be90228150c02ec45 Mon Sep 17 00:00:00 2001 From: diviocity Date: Mon, 30 Nov 2026 16:46:56 +0100 Subject: [PATCH] Verify the exact desktop install before image assembly --- BOOTSTRAP.md | 4 ++++ tools/desktop-root.py | 7 +++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/BOOTSTRAP.md b/BOOTSTRAP.md index a14d077..cd92ccb 100644 --- a/BOOTSTRAP.md +++ b/BOOTSTRAP.md @@ -58,6 +58,10 @@ At ports revision `06d5cb5`, xkeyboard-config supplies the missing check depende The 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`. +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`. + +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. + The 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`. ## Running the shared worker diff --git a/tools/desktop-root.py b/tools/desktop-root.py index 58d8e1a..d0e022f 100644 --- a/tools/desktop-root.py +++ b/tools/desktop-root.py @@ -39,8 +39,9 @@ def build(args): for path in ("etc/alpine-release", "etc/apk", "lib/apk/db", "sbin/apk", "usr/sbin/apk", "usr/bin/apk"): if (root / path).exists() or (root / path).is_symlink(): raise ValueError(f"unexpected Alpine package-management path /{path}") - run("stage", [sys.executable, Path(__file__).with_name("stage-image.py"), args.arch, client, - args.repo, work / "image", args.auditor, args.fingerprint]) + if not args.install_only: + run("stage", [sys.executable, Path(__file__).with_name("stage-image.py"), args.arch, client, + args.repo, work / "image", args.auditor, args.fingerprint]) with (work / "receipts.sha256").open("x") as receipts: for path in sorted(work.glob("*.log")): with path.open("rb") as stream: @@ -53,4 +54,6 @@ if __name__ == "__main__": for name in ("repo", "auditor", "work"): parser.add_argument(name, type=lambda p: Path(p).resolve()) parser.add_argument("fingerprint", help="the distributor's fingerprint supplied independently of the feed") + parser.add_argument("--install-only", action="store_true", + help="prepare the audited client for a separate image assembly") build(parser.parse_args()) -- 2.56.1