Skip to content

docs: clarify the _stage1 args / LoadOptions model#4

Merged
HarryR merged 1 commit into
mainfrom
document-args-model
Jul 7, 2026
Merged

docs: clarify the _stage1 args / LoadOptions model#4
HarryR merged 1 commit into
mainfrom
document-args-model

Conversation

@HarryR

@HarryR HarryR commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

Documentation only -- no code change. Records the argument model the boot-path audit clarified (stage0 already behaves exactly this way).

  • _stage1.args / signed args_url set the booted EFI program's UEFI LoadOptions -- the generic contract for any EFI stage1. They come only from the metadata / signed URL; stage0 never forwards its own firmware/shell invocation arguments to stage1.
  • For a Linux UKI stage1, the kernel command line is baked into the signed, measured UKI and is authoritative: under Secure Boot the stub ignores LoadOptions, so _stage1.args cannot alter the UKI cmdline (a replace would also escape PCR 14). Production runs Secure Boot on; operator config for a UKI flows through _stage2, not the kernel cmdline. A non-UKI EFI stage1 may read these LoadOptions as its args.

Touches config.rs (module + args field docs), set_load_options in main.rs, and the README _stage1 reference. All args/args_url/set_load_options/fetch_signed_args code is unchanged. Verified: stage0.efi still compiles in-container; the diff adds only comment/doc lines.

Pairs with lockboot/stage1#14 (the stage1 config-on-stdin + args-model docs).

🤖 Generated with Claude Code

Document the argument model the boot-path audit clarified; no code change
(stage0 already behaves this way):

- _stage1.args / signed args_url set the booted EFI program's UEFI
  LoadOptions, the generic contract for any EFI stage1. They come only from
  metadata / the signed URL; stage0 never forwards its own firmware/shell
  invocation args to stage1.
- For a Linux UKI stage1, the kernel cmdline is baked into the signed,
  measured UKI and is authoritative; under Secure Boot the stub ignores
  LoadOptions, so _stage1.args cannot alter the UKI cmdline (a replace would
  also escape PCR 14). Operator config for a UKI flows through _stage2, not
  the kernel cmdline.

Touches config.rs module + args field docs, set_load_options in main.rs, and
the README _stage1 reference. All args/args_url/set_load_options/
fetch_signed_args code is unchanged.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@HarryR HarryR merged commit a715447 into main Jul 7, 2026
3 checks passed
@HarryR HarryR deleted the document-args-model branch July 7, 2026 16:47
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