environment: include /usr/sbin and /sbin in systemPath

Don't extend initial PATH adding extra entries should be done through
appending environment.systemPath or manually extending it with
environment.extraInit or similar options.
This commit is contained in:
Daiderd Jordan 2017-05-15 19:22:44 +02:00
parent c8ce901a43
commit 1b6f56f5b8
No known key found for this signature in database
GPG key ID: D02435D05B810C96
5 changed files with 8 additions and 7 deletions

View file

@ -63,7 +63,7 @@ in
if [ -n "$__ETC_BASHRC_SOURCED" -o -n "$NOSYSBASHRC" ]; then return; fi
__ETC_BASHRC_SOURCED=1
export PATH=${config.environment.systemPath}''${PATH:+:$PATH}
export PATH=${config.environment.systemPath}
${config.system.build.setEnvironment}
${config.system.build.setAliases}