nixos containers: fix system path when reloading

This commit is contained in:
Luca Bruno
2015-09-11 16:59:40 +02:00
parent f4b7be4f04
commit 682777ed24
+1 -1
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";