summary refs log tree commit diff
path: root/nixos/modules/installer/tools
diff options
context:
space:
mode:
authorobadz <obadz-git@obadz.com>2016-08-07 01:25:06 +0100
committerobadz <obadz-git@obadz.com>2016-08-09 21:39:40 +0100
commit582313bafef4c81cb6df2dcf2ece4757eb5c8082 (patch)
treeefd3e4326c4dd24d79ce2010292e51b006649e4a /nixos/modules/installer/tools
parent57b7c3c545f35385dbe5a1eab44028f9233b736e (diff)
downloadnixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar.gz
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar.bz2
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar.lz
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar.xz
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.tar.zst
nixpkgs-582313bafef4c81cb6df2dcf2ece4757eb5c8082.zip
nixos: remove rsync from base install and add explicit path in nixos-install
As per https://github.com/NixOS/nixpkgs/commit/60b3f95ad86826faf95680a3529ced1c322d4d87#commitcomment-18507812
Diffstat (limited to 'nixos/modules/installer/tools')
-rw-r--r--nixos/modules/installer/tools/nixos-install.sh2
-rw-r--r--nixos/modules/installer/tools/tools.nix2
2 files changed, 2 insertions, 2 deletions
diff --git a/nixos/modules/installer/tools/nixos-install.sh b/nixos/modules/installer/tools/nixos-install.sh
index ae9f3a89295..0247925f414 100644
--- a/nixos/modules/installer/tools/nixos-install.sh
+++ b/nixos/modules/installer/tools/nixos-install.sh
@@ -175,7 +175,7 @@ if ! NIX_DB_DIR=$mountPoint/nix/var/nix/db nix-store --check-validity @nix@ 2> /
     for i in $(@perl@/bin/perl @pathsFromGraph@ @nixClosure@); do
         echo "  $i"
         chattr -R -i $mountPoint/$i 2> /dev/null || true # clear immutable bit
-        rsync -a $i $mountPoint/nix/store/
+        @rsync@/bin/rsync -a $i $mountPoint/nix/store/
     done
 
     # Register the paths in the Nix closure as valid.  This is necessary
diff --git a/nixos/modules/installer/tools/tools.nix b/nixos/modules/installer/tools/tools.nix
index d8622b51052..a55c03bd952 100644
--- a/nixos/modules/installer/tools/tools.nix
+++ b/nixos/modules/installer/tools/tools.nix
@@ -21,7 +21,7 @@ let
     name = "nixos-install";
     src = ./nixos-install.sh;
 
-    inherit (pkgs) perl pathsFromGraph;
+    inherit (pkgs) perl pathsFromGraph rsync;
     nix = config.nix.package.out;
     cacert = "${pkgs.cacert}/etc/ssl/certs/ca-bundle.crt";