install: Add explicit offline deployment mount API - #2483
Draft
cgwalters-bot wants to merge 2 commits into
Draft
cgwalters-bot wants to merge 2 commits into
cgwalters-bot wants to merge 2 commits into
Conversation
cgwalters
requested changes
Sep 21, 2026
Keep the explicit mount operation caller-owned and backend-neutral without persisting lifecycle state or reconstructing teardown across processes. Existing mount namespaces and recursive unmount provide the lifecycle boundary, while composefs mounting stays next to repository selection. Assisted-by: AI
Document the reduced API contract so callers use recursive unmount and the privileged test exercises the real mount boundary instead of an invented lifecycle record. Assisted-by: AI
cgwalters-bot
force-pushed
the
feature/offline-mount-api
branch
from
September 21, 2026 17:41
ccd933e to
c296210
Compare
This branch has not been deployed
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.
Post-install tooling needs a backend-neutral way to inspect and modify an offline deployment without exposing backend-specific paths through
bootc status. This extracts the mount API work from the composefs stabilization series and makes it standalone on currentmain.The reduced API adds
bootc install mountfor OSTree and native composefs targets. The deployment root remains read-only;--writablemakes only/etcand/varwritable. Mounts remain in the caller's namespace, and callers clean them up withumount -Ror by ending that namespace. Partial assembly failures reuse the existing recursive-unmount helper.Composefs mounting opens the existing repository directly, follows its durable fs-verity policy, and does not implicitly initialize or upgrade repository metadata.
Validation completed locally:
This remains a draft while the revised privileged OSTree and composefs TMT coverage runs in CI. The change is larger than 500 lines and should receive explicit maintainer design review before being marked ready.
Assisted-by: AI
Unit and integration tests are LLM generated.