From Fedora Project Wiki

< Mock

Revision as of 12:13, 26 February 2016 by Msuchy (talk | contribs) (Created page with "== FAQ == === How to preserve environment variable in chroot === Q: I put <pre> config_opts['environment']['VAR'] = os.environ['VAR'] </pre> into config, but the variable i...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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.