On a livecd, root has a different $HOME depending if you login using ssh (/root) or from the console (/). This was already reported and described here: http://osdir.com/ml/linux.gentoo.catalyst/2005-12/msg00012.html Reproducible: Always Steps to Reproduce: 1. Create a liveCD 2. Enable SSH login 3. connect using SSH and compare $HOME variables Expected Results: Expected result is that root's home be /root I came across this problem creating the clustering liveCD as root's .ssh dir was inconsistent.
Oooh... got a patch? I mean, it's likely the bashlogin hack that we're using which is causing this. I'm not sure how exactly to fix it, but I also haven't spent any time looking into it, so any ideas are greatly appreciated.
I asked him to file this bug intending to look into it myself. However, I'm lazy and haven't gotten to it yet ;)
I added 'export HOME=/root' to the top of the script in Git. That should hopefully fix the problem.
HOME appears to be set properly now. I can't pin down how or why but since this bug is six years old I'm just going to mark it obsolete and count "it works" in the win column.
If it's fixed then it isn't obsolete.