1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2024-09-19 10:50:24 -04:00

tests: Use cp -ar instead of tar-untar pipe

This commit is contained in:
John Ericson 2023-12-11 13:55:43 -05:00
parent 4a2cee8e6c
commit eae2717e00

View file

@ -34,7 +34,7 @@ nix-store --store "$storeB" --verify --check-contents
# Make a backup so we can repair later
backupStore="$storeVolume/backup"
mkdir "$backupStore"
tar -cC "$storeBRoot" nix | tar -xC "$backupStore"
cp -ar "$storeBRoot/nix" "$backupStore"
## Deliberately corrupt store paths