User home dir path in environment does not reflect the true user home dir path on the system
pierrepo opened this issue · comments
The possibility to have user home directory elsewhere than in /home
has been recently implemented.
However, in an environment, user home directory path is still /home/foo
for user foo
when the true user home directory path is, for instance, /srv/home/foo
.
User home directory path in an environment:
stu123@99aaad470fe2:~/cours-bash-test$ echo $HOME
/home/stu123
User home directory path in the Unix system:
stu123@adenine:~$ echo $HOME
/srv/home/stu123
Yes it's a leftover from #144
It should be possible to fix this by adding this line:
self.image_homedir_format_string = f"{home}/{username}"
After this line here:
Could you also please add the appropriate Label 🤣 ?
It would be after (a second line), both are needed to specify the path to the home directory on the host and in the container.
So it should look like the following:
self.host_homedir_format_string = f"{home}/{username}"
self.image_homedir_format_string = f"{home}/{username}"