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

When bind-mounting a file, create the target path if it doesn't exist #404

Closed
wants to merge 1 commit into from

Conversation

njam
Copy link

@njam njam commented Apr 5, 2020

If the target path doesn't exist, 'mount' fails with this error:

mount: : mount point does not exist.

I got this error when in a toolbox the path /etc/machine-id does not exist.

This PR just touches the target path if it doesn't exist.

If the target path doesn't exist 'mount' fails with this error:
> mount: <TARGET>: mount point does not exist.
@softwarefactory-project-zuul
Copy link

Build succeeded.

@njam
Copy link
Author

njam commented Jun 21, 2020

Closing because this PR is against the old shell-script version.

@njam njam closed this Jun 21, 2020
@debarshiray
Copy link
Member

The underlying issue also affects the Go version, because it's ultimately a bug in Podman.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants