nixos/azure-image: use rsync instead of cp

Avoids issues with hard linked store contents.
This commit is contained in:
Franz Pletz
2016-09-23 15:24:20 +02:00
parent dfe460a566
commit 097ef6e435

View File

@@ -58,7 +58,7 @@ in
mkdir -p /mnt/nix/store
echo "copying everything (will take a while)..."
cp -prd $storePaths /mnt/nix/store/
${pkgs.rsync}/bin/rsync -a $storePaths /mnt/nix/store/
echo Register the paths in the Nix database.
printRegistration=1 perl ${pkgs.pathsFromGraph} /tmp/xchg/closure | \