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

Create bind destinations during build #2766

Open
dtrudg opened this issue Mar 21, 2024 · 0 comments
Open

Create bind destinations during build #2766

dtrudg opened this issue Mar 21, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@dtrudg
Copy link
Member

dtrudg commented Mar 21, 2024

When a -B / --bind option is used with singularity build, the bind mount target must be present in the image before the %post step executes.

This makes it a little awkward to use -B with singularity build, as generally a well-known existing path must be used (e.g. /mnt), or directories must be created in the rootfs via a %setup block.

It's not entirely straightforward to implement this sensibly.

  • Needs to work across all runtime modes... setuid, kernel overlay / fuse overlay, etc.
  • Should the directory be removed after %post if it didn't exist before %post.
  • What happens if we bind a directory, but it is also created in %post... or similar?
@dtrudg dtrudg added the enhancement New feature or request label Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant