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

In --oci mode $HOME not correct when mount home = no #1783

Closed
dtrudg opened this issue Jun 16, 2023 · 0 comments · Fixed by #1784
Closed

In --oci mode $HOME not correct when mount home = no #1783

dtrudg opened this issue Jun 16, 2023 · 0 comments · Fixed by #1784
Labels
bug Something isn't working

Comments

@dtrudg
Copy link
Member

dtrudg commented Jun 16, 2023

Version of Singularity

main

Describe the bug

In -oci mode if mount home = no in singularity.conf then mounting a tmpfs $HOME in the container is skipped.

Unfortunately, the setting of the home directory path in the container is also skipped.

$ singularity exec --oci docker://alpine sh -c 'echo $HOME'
2023/06/16 11:43:14  info unpack layer: sha256:31e352740f534f9ad170f75378a84fe453d6156e40700b882d737a8f4a6988a3
/root

The above should still be $HOME for the user, even though it is not mounted... and not /root.

@dtrudg dtrudg added the bug Something isn't working label Jun 16, 2023
dtrudg added a commit to dtrudg/singularity that referenced this issue Jun 16, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs#1783
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 10, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 11, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 21, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 24, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 24, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
edytuk pushed a commit to vzokay/apptainer that referenced this issue Jul 24, 2023
When `mount home = no` is set in `singularity.conf`, we still need to
set the correct value for `$HOME` in the container... we just don't
want to mount it.

Fixes sylabs/singularity#1783

Signed-off-by: Edita Kizinevic <edita.kizinevic@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant