about summary refs log tree commit diff
path: root/tools/nixery/build-image/build-image.nix
diff options
context:
space:
mode:
Diffstat (limited to 'tools/nixery/build-image/build-image.nix')
-rw-r--r--tools/nixery/build-image/build-image.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/nixery/build-image/build-image.nix b/tools/nixery/build-image/build-image.nix
index 8f54f53261b2..9cfb806e47b1 100644
--- a/tools/nixery/build-image/build-image.nix
+++ b/tools/nixery/build-image/build-image.nix
@@ -133,11 +133,11 @@ let
   # their contents.
   pathsToLayer = paths: runCommand "layer.tar" {
   } ''
-    tar --no-recursion -rf "$out" \
+    tar --no-recursion -Prf "$out" \
         --mtime="@$SOURCE_DATE_EPOCH" \
         --owner=0 --group=0 /nix /nix/store
 
-    tar -rpf "$out" --hard-dereference --sort=name \
+    tar -Prpf "$out" --hard-dereference --sort=name \
         --mtime="@$SOURCE_DATE_EPOCH" \
         --owner=0 --group=0 ${lib.concatStringsSep " " paths}
   '';