Skip to content

Conversation

@cgwalters
Copy link
Collaborator

Extend our internals docs to have more information.

@github-actions github-actions bot added area/install Issues related to `bootc install` area/documentation Updates to the documentation labels Jan 23, 2026
@bootc-bot bootc-bot bot requested a review from jeckersb January 23, 2026 16:07
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request significantly enhances the internal documentation, providing a comprehensive overview of the project's architecture, module organization, and storage backends. The updates to crates/lib/src/lib.rs and docs/src/internals.md are particularly valuable for developers working on the project. Additionally, several minor stylistic improvements have been made across various Rust files to ensure better Markdown rendering of URLs and code snippets in comments.

@cgwalters cgwalters marked this pull request as draft January 23, 2026 20:19
@cgwalters cgwalters force-pushed the more-internals-docs branch from ae84615 to f63cce9 Compare January 23, 2026 20:31
@github-actions github-actions bot added the area/ostree Issues related to ostree label Jan 23, 2026
@cgwalters cgwalters force-pushed the more-internals-docs branch from f63cce9 to f037998 Compare January 23, 2026 20:31
Wrap bare URLs in angle brackets to make them proper hyperlinks,
escape angle brackets in doc comments that look like HTML tags,
and fix broken intra-doc links.

Assisted-by: OpenCode (Sonnet 4)
Signed-off-by: Colin Walters <walters@verbum.org>
Extend our internals docs to have more information.

Assisted-by: OpenCode (Sonnet 4)
Signed-off-by: Colin Walters <walters@verbum.org>
Add comprehensive documentation for the installation process, with particular
focus on the Discoverable Partitions Specification (DPS) and first-boot
provisioning.

Main documentation (bootc-install.md):
- Add DPS section explaining partition type GUIDs and auto-discovery
- Add table showing when DPS vs explicit root= kargs are used
- Add provisioning and first boot section covering cloud-init,
  Ignition, SSH key injection, and custom provisioning
- Document the .bootc-aleph.json provenance file
- Fix typos ('boot install' -> 'bootc install', 'pased' -> 'passed')

Man page (bootc-install-to-disk.8.md):
- Document partition layout conceptually (avoiding specific sizes/GUIDs
  that may change between versions)
- Explain root filesystem discovery with systemd-gpt-auto-generator

Rustdoc for install.rs:
- Add comprehensive module documentation
- Document all installation modes (to-disk, to-filesystem, to-existing-root, reset)
- Explain OSTree vs Composefs storage backends
- Document key types (State, RootSetup, SourceInfo, SELinuxFinalState)
- List configuration paths and submodules

Rustdoc for discoverable_partition_specification.rs:
- Explain how bootc uses DPS for partition creation
- Document automatic root discovery mechanism
- Describe composefs and sealed boot integration

Assisted-by: OpenCode (Claude Sonnet 4)
Signed-off-by: Colin Walters <walters@verbum.org>
Document how container images are stored as ostree commits, including:

container/mod.rs:
- On-disk storage structure (ref namespace, layer storage, merge commit)
- Import flow from manifest fetch through merge commit creation
- Tar stream format and connection to deployments
- Signature verification options
- Key types and submodules

container/store.rs:
- Reference namespace constants and their purposes
- Three-step import process (create, prepare, execute)
- Layer types (commit, component, derived) and their handling
- Merge commit metadata keys
- Layer caching and deduplication strategy
- Garbage collection behavior
- Example usage

lib.rs:
- Add key modules section highlighting container, tar, sysroot, chunking

This complements the recent installation documentation by explaining how
container images are actually stored on disk in the ostree repository.

Assisted-by: OpenCode (Claude Sonnet 4)
Signed-off-by: Colin Walters <walters@verbum.org>
@cgwalters cgwalters force-pushed the more-internals-docs branch from f037998 to aed41d2 Compare January 26, 2026 23:48
@cgwalters cgwalters marked this pull request as ready for review January 26, 2026 23:49
Copy link
Collaborator

@jeckersb jeckersb left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, I rekicked CI, we'll see how that shakes out

@cgwalters cgwalters enabled auto-merge (rebase) January 28, 2026 15:55
@cgwalters cgwalters merged commit 5c52b25 into bootc-dev:main Jan 28, 2026
48 of 52 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/documentation Updates to the documentation area/install Issues related to `bootc install` area/ostree Issues related to ostree

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants