activation: fix missing /sbin entries in PATH

This commit is contained in:
Daiderd Jordan 2018-08-01 21:08:13 +02:00
parent 09d5b6aae5
commit a893723b95
No known key found for this signature in database
GPG key ID: D02435D05B810C96
2 changed files with 2 additions and 2 deletions

View file

@ -40,7 +40,7 @@ in
#! ${stdenv.shell}
set -e
set -o pipefail
export PATH="${pkgs.gnugrep}/bin:${pkgs.coreutils}/bin:@out@/sw/bin:/usr/bin:/bin"
export PATH="${pkgs.gnugrep}/bin:${pkgs.coreutils}/bin:@out@/sw/bin:/usr/bin:/bin:/usr/sbin:/sbin"
systemConfig=@out@

View file

@ -25,7 +25,7 @@ stdenv.mkDerivation {
set -e
orig_path="$PATH"
export PATH="${pkgs.openssh}/bin:/usr/bin:/bin" # ssh in case nix needs it
export PATH="${pkgs.openssh}/bin:/usr/bin:/bin:/usr/sbin:/sbin" # ssh in case nix needs it
action=switch
while [ "$#" -gt 0 ]; do