Commit f663b145 authored by Yueh-Shun Li's avatar Yueh-Shun Li
Browse files

Revert "singularity-tools: don't preserve store content ownership"

Use `cp -ar` instead of `cp -r` to preserve symbolic links
and other attributes whenever possible.

This reverts commit c2eb0aa5.
parent 10c475ae
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -118,7 +118,7 @@ lib.makeExtensible (final: {
            mkdir -p bin ./${builtins.storeDir}
            # Loop over the line-separated paths in $layerClosure
            while IFS= read -r f; do
              cp -r "$f" "./$f"
              cp -ar "$f" "./$f"
            done < "$layerClosure"

            # TODO(@ShamrockLee):