Skip to content

docs: REPRODUCIBLE-BUILDS.md + refresh stale README/toolchain notes#2

Merged
HarryR merged 1 commit into
mainfrom
reproducible-builds-doc
Jul 10, 2026
Merged

docs: REPRODUCIBLE-BUILDS.md + refresh stale README/toolchain notes#2
HarryR merged 1 commit into
mainfrom
reproducible-builds-doc

Conversation

@HarryR

@HarryR HarryR commented Jul 10, 2026

Copy link
Copy Markdown
Contributor

What

Adds a top-level REPRODUCIBLE-BUILDS.md describing how the stage0 -> UKI chain is kept byte-for-byte reproducible, and refreshes README/toolchain notes that went stale with the recent build changes.

REPRODUCIBLE-BUILDS.md covers

  • The guarantees: aligned pinned toolchain (both 1.91.1), SOURCE_DATE_EPOCH, --locked, per-target static rustflags.
  • The two path-embedding traps that broke CI==local and their --remap-path-prefix fixes: CARGO_HOME (/tmp/.cargo in CI vs /src/.cargo local) and rust-src (rust-analyzer installs it locally; CI's clean toolchain doesn't → different std panic-location paths).
  • The toolchain-bump procedure — update the /rustc/<hash> in the rust-src remap in both repos, or reproducibility silently regresses.
  • How to verify CI == local (gh run download the CI artifacts, sha256 linux.efi/stage2; Authenticode/path-canonical check for stage0's db-signed BOOTX64.EFI).

Also

Refreshes now-stale notes caused by the merged work: the README image table said "static-musl RUSTFLAGS" (moved to per-target config) and "stage1 1.91.0" (now 1.91.1), and described the shared .cargo/config.toml as carrying musl link flags (it now carries only [env]). Fixed those + this file's own comment.

Pairs with lockboot/stage0#9 and lockboot/stage1#18 (the reproducibility fixes themselves).

🤖 Generated with Claude Code

Document how the chain's builds are made byte-for-byte reproducible (and how CI
and local are kept identical): pinned+aligned toolchain, SOURCE_DATE_EPOCH,
locked deps, per-target static-linking rustflags, and the two path-embedding
traps that broke it -- CARGO_HOME (/tmp vs /src) and rust-src sysroot paths --
both fixed with --remap-path-prefix. Includes the toolchain-bump procedure
(update the /rustc/<hash> in the rust-src remap) and the CI==local verify steps.

Also refresh notes that went stale when the global RUSTFLAGS moved to per-target
config and stage1's toolchain was aligned to 1.91.1: the README image table and
toolchain/target policy, and this file's own comment (dropped the "lockboot
(1.91.0)" reference; stage0/stage1 are both 1.91.1 now).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HarryR
HarryR marked this pull request as ready for review July 10, 2026 07:02
@HarryR
HarryR merged commit 9add9eb into main Jul 10, 2026
@HarryR
HarryR deleted the reproducible-builds-doc branch July 10, 2026 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant