diff --git a/tests/functional/local-overlay-store/verify-inner.sh b/tests/functional/local-overlay-store/verify-inner.sh index c98ea1f96..659f2ae50 100755 --- a/tests/functional/local-overlay-store/verify-inner.sh +++ b/tests/functional/local-overlay-store/verify-inner.sh @@ -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