Add --no-mount to override (disable) singularity.conf mount options #5697
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.
NOTE: This is proposed as an alternative to the single
--no-hostfs
in #5086, but I'm very open to any of:--no-mount
approach.--no-hostfs
by re-opening Add --no-hostfs actions flag #5086--no-xxx
flags for eachmount xxx
config option by modifying this PR.My opinion r.e. the previous discussion in #5086 is that as we have an existing
--no-xxx
pattern for flags, the proposal in#5086
comments of a--mount ^xxxx
negation syntax is confusing. Also if we allow positive overrides via a--mount
we need to worry about precedence / behavior when user binds are disabled etc. For positive overrides (mounting things disabled insingularity.conf
)--bind/-B
is already available, with understood semantics.Description of the Pull Request (PR):
It has been requested that users can turn off mount options set to
yes
in
singularity.conf
as they may interfere with some containers -especially when
mount hostfs = yes
is set.In #5086 a single
--no-hostfs
flag was introduced but concern wasraised that we should be able to disable all, and this would lead to a
proliferation of flags. Another viewpoint is that we should have all of
the
--no-xxxxx
flags.This PR proposes a middle ground. Add a
--no-mount
flag that can takeone or more 'mounts' to disable, overriding the
singularity.conf
value. I feel this is more clear / friendlier than using
--mount ^hostfs
negation syntax.
Implemented through individual NoXXXX booleans on the EngineConfig so it'd
be trivial to add the
--no-xxxx
CLI flags later if we change ourminds.
This fixes or addresses the following GitHub issues:
Before submitting a PR, make sure you have done the following:
make testall
Attn: @singularity-maintainers