Currently, /etc/conf.d/env_whitelist is a file. Might be useful to make it a directory and let ebuilds install the needed entries there, that will be parsed by baselayout (similar to revdep-rebuild). There's at least one ebuild that could make use of that functionality currently (CCing Flameeyes here :P).
adding a new directory seems like a lot of overhead for very little gain Roy: any way we can let init.d or conf.d files declare this ? or is it too late by the time we source them ? it'd be nice if init.d scripts could do like: RC_WHITELIST="foo bar vars"
We can do that, but would have to parse the config file twice - once by /sbin/runscript and again by /sbin/runscript.sh Infact I like this more as an extra directory would be a mess.
Created attachment 92135 [details, diff] Allow RC_ENV_WHITELIST variable for conf.d/foo Patch only applies to svn trunk rev 2165 This is just recorded for posterity - it's not being added to trunk as Az don't like it. Also, we can add env vars to daemons like so start-stop-daemon $args --env FOO=BAR Although that's currently limited to 1 env var at this time, and that works in baselayout-1.12.1 so does this bug need to remain open?