From 097ef6e435d5b3fcde92e67abbaaaaaf05c0723d Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Fri, 23 Sep 2016 15:24:20 +0200 Subject: [PATCH] nixos/azure-image: use rsync instead of cp Avoids issues with hard linked store contents. --- nixos/modules/virtualisation/azure-image.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/modules/virtualisation/azure-image.nix b/nixos/modules/virtualisation/azure-image.nix index 9fac543b03d5..4a27af6c48e3 100644 --- a/nixos/modules/virtualisation/azure-image.nix +++ b/nixos/modules/virtualisation/azure-image.nix @@ -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 | \