Skip to content

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

Closed
njam wants to merge 1 commit intocontainers:masterfrom
njam:mount-file
Closed

When bind-mounting a file, create the target path if it doesn't exist#404
njam wants to merge 1 commit intocontainers:masterfrom
njam:mount-file

Conversation

@njam
Copy link
Copy Markdown

@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
Copy Markdown

Build succeeded.

@njam
Copy link
Copy Markdown
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
Copy Markdown
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