2010-09-21 12:18:15     HOME environment variable is not set

Document created by Aaronwu Employee on Aug 23, 2013
Version 1Show Document
  • View in full screen mode

2010-09-21 12:18:15     HOME environment variable is not set

Rob Maris (GERMANY)

Message: 93703   

 

While testing an app (here: Linphone) in trunk state, it appears that HOME is not set, while having been set anyway in my previous production distribution. I compared several configuration entities of both code bases, but I'm not succeeding in getting to the core of the problem. Suggestions welcome.

QuoteReplyEditDelete

 

 

2010-09-21 14:10:59     Re: HOME environment variable is not set

Mike Frysinger (UNITED STATES)

Message: 93706   

 

are you sure HOME was being set correctly ?  or was it just always being set to "/" ?

 

how exactly are you launching linphone in your production system ?  via init or something else ?

QuoteReplyEditDelete

 

 

2010-09-21 14:40:44     Re: HOME environment variable is not set

Rob Maris (GERMANY)

Message: 93707   

 

Indeed, HOME was not set as should be expected. The production system shows HOME=/. At that time I didn't care much about it, and I arranged an rc.local (which is stored in user flash area mounted as /root, and invoked from the tail of rc). This rc.local copies .linphonerc from /root/... to /, and then starts linphonec (later I realized that HOME should have been at /root).

 

Now, with the updated system, HOME is not defined at all. Hence Linphone doesn't load it .linphonerc. In both cases init is standard (not busybox's init).

 

trunk:

 

root: /> env

TERM=linux

PATH=/bin:/usr/bin:/sbin:/usr/sbin

TZ=CET-1CEST

HUSH_VERSION=1.16.2

PWD=/

 

2.6.28 (msh):

 

root: /> env

HOME=/

SHELL=/bin/sh

TZ=CET-1CEST

PATH=/bin:/usr/bin:/sbin:/usr/sbin

TERM=linux

 

QuoteReplyEditDelete

 

 

2010-09-21 14:53:42     Re: HOME environment variable is not set

Mike Frysinger (UNITED STATES)

Message: 93708   

 

msh would always set HOME to "/" if it isnt already set

 

hush has no such code

 

the spec doesnt say it is the shell's responsibility to set HOME, just that "the system" should take care of it.  so i'd have to do a little poking to find out where the best spot to inject this.

QuoteReplyEditDelete

Attachments

    Outcomes