Closed alcir closed 2 years ago
@alcir thanks
what is the value of $HOME?
I ask because this very fix was introduced because on #43 we found that $HOME on Fedora Kionite was still /home/username
pointing to the symlink /var/home/username
Is your $HOME is /var/home/username
instead of /home/username
?
@alcir I've created a new pull request with a fix, can you confirm it fixes the situation? This way we can support both cases:
Is your $HOME is
/var/home/username
instead of/home/username
?
It is /var/home/myuser
I'm pretty sure that also in a brand new installation it is /var/home/username
. I don't know if Kinoite changes the $HOME variable, or it is simply a Silverblue version with a different DE. I will check.
Yea it seems just a variable problem, the directory layout is right Also probably that's why on my Silverblue test the #43 never happened :shrug:
@alcir I've created a new pull request with a fix, can you confirm it fixes the situation? This way we can support both cases:
Yes it works (for me).
Testing again on a brand new Silverblue 35 it works Setting $HOME to /home/username and testing again seems to work correcly
The fix will be included in release 1.2.5 :+1:
I don't know if Kinoite changes the $HOME variable, or it is simply a Silverblue version with a different DE. I will check.
Eh. On Kinoite, $HOME
is the classic /home/username
But if you create a new user, its home is /var/home/username
$ cat /etc/passwd
root:x:0:0:root:/root:/bin/bash
myuser:x:1000:1000:myuser:/home/myuser:/bin/bash
newuser:x:1001:1001:newuser:/var/home/newuser:/bin/bash
Ok we now handle this, maybe that's a good issue to open on Kinoite's git :smile:
maybe that's a good issue to open on Kinoite's git smile
For now I started a discussion here: https://discussion.fedoraproject.org/t/the-home-directory/35482
Cool will follow that
i'm also having this issue on silverblue.
@xrishox are you on 1.2.4? The fix for this is coming shortly in 1.2.5
https://github.com/89luca89/distrobox/blob/5289fa220a306ff5e95ebdbdf8e6b38c092e121a/distrobox-create#L218
I'm on Fedora Silverblue. Using
distrobox-create
, I getError: /var/home/myuser: duplicate mount destination
I think because we have
and again
On my system,
$container_user_home
(that is $HOME) is/var/home/myuser
. Not to say that on Fedora Silverblue/home
is a symlink tovar/home
.