shifter
shifter copied to clipboard
siteFs config in udiRoot.conf doesn't work as documented
The comments in udiRoot.conf say:
Space seperated list of paths to be automatically bind-mounted into the container.
However, taking the example /home:/home and expanding that to:
siteFs=/vlsci:/vlsci /scratch:/scratch /hsm:/hsm
results in:
[samuel@bruce ~]$ shifter Unknown flag: Invalid mount flags specified: /scratch /hsm
In wlm_integration/slurm/test/test_udiRoot.conf.in
there is a different format:
siteFs=/home;/mnt
and that seems to work (or at least I get an error about allowedImageTypes
instead).
What's the correct format to give a list of filesystems to mount?
thanks! Chris
Hello,
Sorry about this! Was a problem with the documentation, the field was updated to use the same code as the VolumeMap stuff (originally developed for the user-requested volume mounts). Anyway, the list is semicolon separated these days, which is mildly odd because it's the only field in udiRoot.conf that accepts multiple values which is not space separated.
I've fixed the documentation in commit 2e30716002cf15bc902edc79b8c4883b28564c2b.
-Doug
Thanks Doug!
Only extra suggestion there would be to document the syntax - there appear to be : separating the host directory and the container mount point, but some other uses in the git repo have extra :'s as well, are those mount options?
Also if the mount location inside and outside are identical can you omit the container mount point and so only have a ; separated list of filesystems? Seems to be possible from some of the examples of use.
thanks! Chris