Skip to content

Commit

Permalink
nixos/azure-image: use rsync instead of cp
Browse files Browse the repository at this point in the history
Avoids issues with hard linked store contents.
  • Loading branch information
fpletz committed Sep 23, 2016
1 parent dfe460a commit 097ef6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/virtualisation/azure-image.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 | \
Expand Down

0 comments on commit 097ef6e

Please sign in to comment.