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 c2eb0aa56e.
This commit is contained in:
Yueh-Shun Li
2024-11-25 02:21:45 +08:00
parent 10c475aeb9
commit f663b14524
@@ -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):