Add builtin directory on run if non-existent #1127
Closed
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.
Signed-off-by: TomSweeneyRedHat [email protected]
I think this will most likely replace #1125, but don't want to close that quite yet.
If an image has a builtin volume attached to it like:
Create the directory if it doesn't exist and fails the first stat, then attempt to continue processing.
I've one slight concern with this change. To replicate it prior to this change:
After this change both runs work. However my concern is what's created on the host. After the first
buildah run
I see:But I was thinking I should see something under
too, but I'm not. Am I overexpecting @nalind ?
Otherwise with this change I'm seeing the /var/lib/registry directory in the container as I'd expect.