We're trying to sort out the best fix for #214898.
I want to make sure we avoid duplication and only have the information
stored in one place - and it seems like pam is probably the best place,
since it's already setup to provide stuff from /etc/environment.
Would you object to a tool called 'pam_getenv' being included in
libpam0g or libpam-modules? The idea is that init scripts could then
include something like:
and pull that in if they wanted to.
If that's okay, we'll figure out hacking that together and submit it.