nixos containers: fix system path when reloading

This commit is contained in:
Luca Bruno 2015-09-10 12:51:06 +02:00
parent f4b7be4f04
commit 682777ed24

View File

@ -299,7 +299,7 @@ in
''
#! ${pkgs.stdenv.shell} -e
${nixos-container}/bin/nixos-container run "$INSTANCE" -- \
bash --login -c "/nix/var/nix/profiles/system/bin/switch-to-configuration test"
bash --login -c "''${SYSTEM_PATH:-/nix/var/nix/profiles/system}/bin/switch-to-configuration test"
'';
SyslogIdentifier = "container %i";