-
Notifications
You must be signed in to change notification settings - Fork 196
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
composepost: Support rootfs.transient=yes #4719
Conversation
/retest |
Hmm thinking about this more we almost certainly still want the |
e804dab
to
c512e89
Compare
OK tested this more, also extended the unit tests. |
I think there are two separate features here:
Those two things seem related but still mostly independent. |
Transient
Can you give a specific example? Are you saying that we would want to somehow still support deny-listing specific toplevel directories from being added? Or for being...read-only? Note today without ostree using overlayfs/composefs, any new toplevel directories today added to a commit default to writable - and effectively transient because they will go away on the next OS update. |
For posterity, note I've taken the discussion here to ostreedev/ostree#3113. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A messy detail here is that it creates a rift between the container flow and the client-side layering flow. The client-side layering code moves /opt
to /usr/lib/opt
, so having /opt
be transient doesn't help there. I think if we go with the rebased upperdir approach in the future, we'll have to decide how to harmonize /opt
handling. (I.e. either stop moving it to /usr/lib/opt
client-side, or change the container path to move /opt
to /usr/lib/opt
on import.)
This pairs with ostreedev/ostree#3114 Basically we want to detect the case where the OS has opted-in to this new mode and *not* symlink things. I originally thought we could implement this by just moving all the toplevel directories, but then I hit on the fact that because the `filesystem` package is creating all the toplevel directories in lua script which we ignore...that doesn't work. So we need to keep making them by hand.
c512e89
to
7857feb
Compare
|
This pairs with ostreedev/ostree#3114
Basically we want to detect the case where the OS has opted-in to this new mode and not symlink things.
I originally thought we could implement this by just moving all the toplevel directories, but then I hit on the fact that because the
filesystem
package is creating all the toplevel directories in lua script which we ignore...that doesn't work.So we need to keep making them by hand.