Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 235068 - app-misc/livecd-tools doesn't set root's $HOME dir in a consistent way
Summary: app-misc/livecd-tools doesn't set root's $HOME dir in a consistent way
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo LiveCD Package Maintainers
URL: http://osdir.com/ml/linux.gentoo.cata...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2008-08-18 03:45 UTC by Eric Thibodeau
Modified: 2015-12-18 12:07 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Eric Thibodeau 2008-08-18 03:45:20 UTC
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.
Comment 1 Chris Gianelloni 2008-08-21 17:49:06 UTC
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.
Comment 2 Andrew Gaffney (RETIRED) gentoo-dev 2008-08-21 19:36:09 UTC
I asked him to file this bug intending to look into it myself. However, I'm lazy and haven't gotten to it yet ;)
Comment 3 Andrew Gaffney (RETIRED) gentoo-dev 2008-08-21 21:10:58 UTC
I added 'export HOME=/root' to the top of the script in Git. That should hopefully fix the problem.
Comment 4 Rick Farina (Zero_Chaos) gentoo-dev 2015-12-09 06:39:04 UTC
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.
Comment 5 Jeroen Roovers (RETIRED) gentoo-dev 2015-12-18 12:07:52 UTC
If it's fixed then it isn't obsolete.