Skip to content
Miroslav Suchý edited this page Aug 17, 2016 · 7 revisions

FAQ

How to preserve environment variable in chroot

Q: I put

config_opts['environment']['VAR'] = os.environ['VAR']

into config, but the variable is not preserved.

A: Environment is sanitized by consolehelper when elevating UID. You need to alter /etc/security/console.apps/mock too.

Clone this wiki locally