[buildd-tools-devel] Bug#589830: Bug#589830: schroot - run command produces mostly empty environment

Roger Leigh rleigh at codelibre.net
Wed Jul 21 14:24:37 UTC 2010


On Wed, Jul 21, 2010 at 02:56:31PM +0200, Bastian Blank wrote:
> Package: schroot
> Version: 1.4.7-1
> Severity: important
> 
> | $ schroot -r -c sid-amd64-c7f1f52b-b069-464d-8036-e872ecdfaedf sh
> | $ set
> | IFS='
> | '
> | OPTIND='1'
> | PATH='/usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games'
> | PPID='16903'
> | PS1='$ '
> | PS2='> '
> | PS4='+ '
> | PWD='/home/waldi'
> | SCHROOT_COMMAND='sh'
> | SCHROOT_GID='1000'
> | SCHROOT_GROUP='waldi'
> | SCHROOT_SESSION_ID='sid-amd64-c7f1f52b-b069-464d-8036-e872ecdfaedf'
> | SCHROOT_UID='1000'
> | SCHROOT_USER='waldi'
> | $
> 
> The important variables TERM and SHELL are missing and breaks normal
> shell usage.

Using --preserve-environment (or setting preserve-environment=true
in the chroot configuration) will preserve these variables.  Maybe
we also need to add a whitelist in addition to the blacklist which
automatically copies certain variables whether or not
--preserve-environment is used?


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/buildd-tools-devel/attachments/20100721/b573f63c/attachment.pgp>


More information about the Buildd-tools-devel mailing list