#587770 schroot - Please provide a way to add things to the default environment filter

Package:
schroot
Source:
schroot
Description:
Execute commands in a chroot environment
Submitter:
Bastian Blank
Date:
2014-06-21 16:51:04 UTC
Severity:
wishlist
#587770#5
Date:
2010-07-01 14:23:54 UTC
From:
To:
I'd like to filter further variables from the environment, like LC_* and
LANG. Currently I have to copy default value and change it.

Bastian

#587770#10
Date:
2010-07-01 15:14:49 UTC
From:
To:
Do you have any thoughts on how you'd like this to work?  We could
allow the use of multiple regexes in place of the current single large
regex, but I'm not sure how to put that in the config file nicely.

While we hard-code the default in, the reason it needs copying and
changing is so that it can be overridden if required (otherwise
it wouldn't be possible to remove those initial defaults from the
filter, only to extend it).


Regards,
Roger

#587770#15
Date:
2010-10-22 15:04:00 UTC
From:
To:
 I second this feature request!  Something like debuild's
 --preserve-envvar= would be just fine with me (allows for simple
 regexps, but can also easily list multiple env vars to preserve).

#587770#20
Date:
2014-06-21 16:42:24 UTC
From:
To:
Hi,

I also think this is a useful feature. The particular use case I'm
interested in is as follows. Currently schroot removes the DISPLAY env
variable, However, I'd prefer if it wasn't, because this breaks
running X applications from inside the chroot.

Loic wrote

I also think this is a good idea

The debuild man page says