From Fedora Project Wiki
< Mock
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.