activation-scripts: include system in PATH

This makes rollback more reliable by using the same version of tools
that where used previously. For example nix is used during the
activation checks.
This commit is contained in:
Daiderd Jordan 2018-01-14 22:02:27 +01:00
parent ca1678c06c
commit 29f9fb52b3
No known key found for this signature in database
GPG key ID: D02435D05B810C96

View file

@ -40,7 +40,7 @@ in
#! ${stdenv.shell}
set -e
set -o pipefail
export PATH=${pkgs.coreutils}/bin:${config.environment.systemPath}
export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath}
systemConfig=@out@
@ -82,7 +82,7 @@ in
#! ${stdenv.shell}
set -e
set -o pipefail
export PATH=${pkgs.coreutils}/bin:${config.environment.systemPath}
export PATH=${pkgs.coreutils}/bin:@out@/sw/bin:${config.environment.systemPath}
systemConfig=@out@