mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
nixos/azure-image: use rsync instead of cp
Avoids issues with hard linked store contents.
This commit is contained in:
@@ -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 | \
|
||||
|
||||
Reference in New Issue
Block a user