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

Squashfs support in --container-mount #180

Open
sean-smith opened this issue Feb 29, 2024 · 2 comments
Open

Squashfs support in --container-mount #180

sean-smith opened this issue Feb 29, 2024 · 2 comments

Comments

@sean-smith
Copy link

Is it possible to expose a squashfs via the --container-mounts flag in pyxis/enroot?

@3XX0
Copy link
Member

3XX0 commented Feb 29, 2024

No since this requires privileges. However:

  1. You can use squashfuse from within the container as a user to mount it
  2. As root you can use autofs and set it up for your users. For example assuming the images are stored under /data (e.g. /data/foo.sqsh):
cat <<EOF > /etc/auto.misc​
* -fstype=squashfs,loop,ro,nosuid,nodev :/data/&.sqsh​
EOF​

systemctl reload autofs

srun --container-image=... --container-mounts=/misc/foo

@sean-smith
Copy link
Author

Thanks Jonathan, we have root access so will try the later.

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

No branches or pull requests

2 participants