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 into
containers:masterfrom
njam:mount-file
Closed

njam wants to merge 1 commit into
containers:masterfrom
njam:mount-file

Conversation

@njam

@njam njam commented Apr 5, 2020

Copy link
Copy Markdown

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-delete-me

Copy link
Copy Markdown

Build succeeded.

@njam

njam commented Jun 21, 2020

Copy link
Copy Markdown
Author

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