From eae2717e00e82a61884b3f53a50db94272a1fad1 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Mon, 11 Dec 2023 13:55:43 -0500 Subject: [PATCH] tests: Use `cp -ar` instead of tar-untar pipe --- tests/functional/local-overlay-store/verify-inner.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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