Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prepare-root: Unify root.transient with composefs #3170

Merged
merged 2 commits into from
Feb 13, 2024

Conversation

cgwalters
Copy link
Member

prepare-root: Add missing newline

This is ugly in the output.


prepare-root: Unify root.transient with composefs

First, I was totally wrong and composefs handles being passed
an upperdir itself, we don't need to stack overlayfs.

Next, there's really no reason to support root.transient
without a backing composefs. The legacy ostree bind mount
and readonly /usr is just that - legacy.

Finally, we actually must do this to enable both composefs
and transient root, because the prepare-root flow assumes
that it just needs to MS_MOVE a single mount for the root,
not a stack.


This is ugly in the output.
First, I was totally wrong and composefs handles being passed
an upperdir itself, we don't need to stack overlayfs.

Next, there's really no reason to support `root.transient`
*without* a backing composefs.  The legacy ostree bind mount
and readonly `/usr` is just that - legacy.

Finally, we actually *must* do this to enable both composefs
and transient root, because the prepare-root flow assumes
that it just needs to `MS_MOVE` a *single* mount for the root,
not a stack.
@github-actions github-actions bot added the area/prepare-root Issue relates to ostree-prepare-root label Feb 12, 2024
@cgwalters
Copy link
Member Author

Arguably now it should be something like
composefs.overlay = true
instead of root.transient...but eh.

Copy link
Member

@alexlarsson alexlarsson left a comment

Choose a reason for hiding this comment

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

lgtm

@cgwalters cgwalters merged commit a3f9276 into ostreedev:main Feb 13, 2024
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/prepare-root Issue relates to ostree-prepare-root
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants