On Fri, 2020-03-20 at 17:50 +0000, Witold Baryluk wrote:
I want all instances of apt in the chroot during lb build, to have
few extra
environment variables, for example:
export NEEDRESTART_SUSPEND=1
export APT_LISTCHANGES_FRONTEND=none
I am not sure how to do that, without modifying the lb itself.
Similarly, I might want to pass some environment variables to the
custom
hooks in the chroot. For the hooks, I could create custom file with
exports / variables and source it in the chroot hooks,
but it will not work for the lb chroot.
try placing them in config/environment or config/environment.chroot
each line of these files not starting with a '#' is included into the
ENV variable by the Chroot() function (functionc/chroot.sh) and
presumably is precisely intended for your use case.