[Buildd-tools-devel] schroot question
Roger Leigh
rleigh at codelibre.net
Sun Jan 11 18:15:06 UTC 2009
On Sun, Jan 11, 2009 at 01:08:06PM -0500, Steven Hirsch wrote:
> On Sun, 11 Jan 2009, Roger Leigh wrote:
>
> > Your home directory is determined using the same mechanism as for a
> > normal login. i.e. $HOME and pass.pw_dir in the system passwd file.
> > The -d option only changes the directory the command is run in, by
> > chdir()ing to it. This is independent of the $HOME/passwd home
> > directory, though you can use the -p option to pass $HOME through.
> But that passes through everything, correct? I wish there were a means to
> specify environment variables individually on the command line.
-p does pass the entire environment. You can use the
environment-filter configuration option to restrict what is passed, but
this is not settable on the command-line.
You could do
HOME=/some/where schroot -p ...
to set $HOME just for the one command, but you'll still get the rest
of the environment as well.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
More information about the Buildd-tools-devel
mailing list