Skip to content

docs: Update composefs finalization docs#2168

Open
cgwalters wants to merge 1 commit intobootc-dev:mainfrom
cgwalters:composefs-internals
Open

docs: Update composefs finalization docs#2168
cgwalters wants to merge 1 commit intobootc-dev:mainfrom
cgwalters:composefs-internals

Conversation

@cgwalters
Copy link
Copy Markdown
Collaborator

This came up during review of PR #2161, where the PR description incorrectly claimed composefs status detection conflates booted and staged deployments.

The composefs-finalize-staged man page was mostly a stub, and what we really want to document is the service, not the command. Make the command hidden and move the man page to be about the service.

Update the internals docs for more about this too.

Assisted-by: OpenCode (Claude Opus 4)

This came up during review of PR bootc-dev#2161, where the PR description
incorrectly claimed composefs status detection conflates booted and
staged deployments.

The composefs-finalize-staged man page was mostly a stub, and what
we really want to document is the service, not the command. Make
the command hidden and move the man page to be about the service.

Update the internals docs for more about this too.

Assisted-by: OpenCode (Claude Opus 4)
Signed-off-by: Colin Walters <walters@verbum.org>
@github-actions github-actions Bot added the area/documentation Updates to the documentation label Apr 24, 2026
@bootc-bot bootc-bot Bot requested a review from ckyrouac April 24, 2026 22:40
Copy link
Copy Markdown
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 documents the composefs backend's deployment identification, staging, and finalization processes. It hides the internal composefs-finalize-staged command from the CLI and adds a new man page for the bootc-finalize-staged.service. Feedback includes standardizing the man page's NAME section for better indexing and correcting the technical description of the renameat2 system call flag.

Comment on lines +1 to +3
# NAME

bootc-finalize-staged.service
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

The NAME section in a man page should follow the standard format: name - summary description. This allows tools like apropos to correctly index the service and provides a quick overview for users.

Suggested change
# NAME
bootc-finalize-staged.service
# NAME
bootc-finalize-staged.service - Finalize a staged composefs deployment at shutdown

have local modifications), and the new deployment's `/etc`.

4. Atomically swaps the boot loader entries: `loader/entries.staged` is
exchanged with `loader/entries` via a single `RENAME_EXCHANGE` syscall,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

RENAME_EXCHANGE is a flag for the renameat2 system call, rather than a system call itself. Referring to the specific syscall is more technically accurate and consistent with the description in the internals documentation.

Suggested change
exchanged with `loader/entries` via a single `RENAME_EXCHANGE` syscall,
exchanged with loader/entries via a single renameat2(RENAME_EXCHANGE) syscall,

Copy link
Copy Markdown
Contributor

@jmarrero jmarrero left a comment

Choose a reason for hiding this comment

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

lgtm

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants