Skip to content

fix: don't set mode option on workdir bind mount #3718

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

Merged
merged 1 commit into from
Jun 20, 2025

Conversation

dtrudg
Copy link
Member

@dtrudg dtrudg commented Jun 20, 2025

Description of the Pull Request (PR):

runc v1.2+ checks that a bind mount definition doesn't have any fs-specific options set on it, as these will not be applied.

We are erroneously setting mode=777 on a --workdir bind mount prior to this PR, so --workdir causes a failure where runc v1.2+ is installed, and crun is not installed.

Remove the incorrect option. It likely came from a copy/paste of a tmpfs definition, and has never been correct/effective here.

This fixes or addresses the following GitHub issues:

Before submitting a PR, make sure you have done the following:

@dtrudg dtrudg self-assigned this Jun 20, 2025
runc v1.2+ checks that a bind mount definition doesn't have any
fs-specific options set on it, as these will not be applied.

We are erroneously setting `mode-777` on a `--workdir` bind mount prior
to this PR, so `--workdir` causes a failure where runc v1.2+ is
installed, and crun is not installed.

Remove the incorrect option. It likely came from a copy/paste of a
`tmpfs` definition, and has never been correct/effective here.

Fixes sylabs#3716
@dtrudg dtrudg merged commit 9d76986 into sylabs:main Jun 20, 2025
1 check passed
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.

OCI-Mode bind failures with runc 1.2+
2 participants