-
Notifications
You must be signed in to change notification settings - Fork 49
Files copied with %file are not seen by %post under Windows + WSL2 + Ubuntu #206
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
Comments
hey @sapetnioc you would want to post issues to https://github.com/hpcng/singularity/issues - this is the web documentation for container tools (Singularity Hub, Registry, etc.). I can't transfer the issue because it's a different org, otherwise I'd do that for you. But one thing to try - since you are listing in $SINGULARITY_CONTAINER/tmp why not just chmod there? It does seem like a bug though, I'd report it. |
I will post the issue where it is supposed to go. Sorry. Yes I can find a workaround but I noticed that in Linux, there is no |
If I remember correctly, in %post you shouldn't need to use SINGULARITY_CONTAINER or SINGULARITY_ROOTFS - it's only in setup. But one other detail - during build your container will bind your /tmp, so if you copy something to there isn't probably not going to persist. Maybe try somewhere else instead? This seems to work:
Most users won't use |
I may have been lazy but I did not find information about Thank you for your answers, this was very helpful. |
I am trying to use Singularity (3.6.1+21-g0441c656a-dirty) under Windows with Ubuntu 18.04 and a fresh update providing WSL2 (a true Linux kernel in Windows 10). I was pleased to see that using images worked for me. (this was not the case with WSL1). But I got an error for image creation if I try to use files copied by
%file
in a%post
section. I did the following :With the following
recipe
file :This produces the following output :
test.sh
is copied but is not accessible in/tmp
from the%post
script. It is located in/tmp/rootfs-<uuid>/tmp
. This error is not present under a true Linux workstation.The text was updated successfully, but these errors were encountered: