docs: REPRODUCIBLE-BUILDS.md + refresh stale README/toolchain notes#2
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Adds a top-level
REPRODUCIBLE-BUILDS.mddescribing 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
SOURCE_DATE_EPOCH,--locked, per-target static rustflags.--remap-path-prefixfixes: CARGO_HOME (/tmp/.cargoin CI vs/src/.cargolocal) and rust-src (rust-analyzer installs it locally; CI's clean toolchain doesn't → different std panic-location paths)./rustc/<hash>in the rust-src remap in both repos, or reproducibility silently regresses.gh run downloadthe CI artifacts, sha256linux.efi/stage2; Authenticode/path-canonical check for stage0's db-signedBOOTX64.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.tomlas 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