buildah
buildah copied to clipboard
RUN: only use an overlay for --mount=type=bind,rw on overlay
What type of PR is this?
/kind bug
What this PR does / why we need it:
Only use an overlay for --mounts of type=bind,rw, where changes should be discarded, if the storage driver is overlay. Otherwise, make a temporary copy.
How to verify it
Updated CI to test {vfs|overlay} over {vfs|overlay}, which would have caught this.
Which issue(s) this PR fixes:
Should fix #5988.
Special notes for your reviewer:
Basically what https://github.com/containers/buildah/issues/5988#issuecomment-2718307144 suggested.
Does this PR introduce a user-facing change?
When not using overlay for storage, running `buildah run` or executing a `buildah build` RUN instruction with the `--mount=type=bind,rw` flag will now use a temporary copy to ensure that writes are discarded, instead of attempting to mount an overlay filesystem using the source location as a "lower".
Ephemeral COPR build failed. @containers/packit-build please check.
@nalind looks lke you need an update here.
[APPROVALNOTIFIER] This PR is APPROVED
This pull-request has been approved by: Honny1, nalind
The full list of commands accepted by this bot can be found here.
The pull request process is described here
- ~~OWNERS~~ [nalind]
Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment
A friendly reminder that this PR had no activity for 30 days.
@nalind merge conflict here that needs some massaging.
A friendly reminder that this PR had no activity for 30 days.
What's the status of this PR? It was approved at some point and then seemingly abandoned.
We run into the same problem in our CI and are interested in a solution to the problem, are there any plans to get this PR back on track in the near future?