RFC: ostree commit: Add option --tree=prefix=PREFIX#1651
RFC: ostree commit: Add option --tree=prefix=PREFIX#1651wmanley wants to merge 1 commit intoostreedev:mainfrom
--tree=prefix=PREFIX#1651Conversation
|
Hmm, a similar idea I've had was to copy the features of |
On that subject: I started implementing support for overlaying upper directories from overlayfs as part of I stopped when I discovered that you need CAP_SYS_ADMIN to read the xattrs that overlayfs writes. I'm taking a different approach to make that fast. |
|
Hmm OK, one thing I missed at first is that ? That way they're together so it's easier to tell and harder to get wrong/break during a refactor (and if someone really wants to target a subtree that has
Thinking more about this, I think they're mostly orthogonal and could come after if the need arises. Right now, |
|
bot, retest this please |
|
☔ The latest upstream changes (presumably 9367a1b) made this pull request unmergeable. Please resolve the merge conflicts. |
This enhances `ostree commit`'s ability to compose trees. You can now run
ostree commit -b rootfs \
--tree=ref=rootfs \
--tree=prefix=/usr/lib/machines/container --tree=ref=container
and that will "mount" the container ref under usr/lib/machines/container
in rootfs. It is much faster than checking the tree out and checking it
back in again.
This is useful for our buildsystem where we ship containers in the rootfs
image.
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: wmanley The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
@wmanley: PR needs rebase. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
|
@wmanley: The following tests failed, say
Full PR test history. Your PR dashboard. DetailsInstructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
This enhances
ostree commit's ability to compose trees. You can now runand that will "mount" the container ref under usr/lib/machines/container
in rootfs. It is much faster than checking the tree out and checking it
back in again.
This is useful for our buildsystem where we ship containers in the rootfs image.
I'm still not sure of the UI. I'm hoping this PR will spur on discussion.
Alternatives
Have a single switch that affects all
--treeoptions. The above incantation would become:TODO:
dirmeta_0755_0_0, write it explicitly instead