fix(build-image): Use absolute paths in tarballs

This commit is contained in:
Vincent Ambo 2019-09-21 15:03:46 +01:00 committed by Vincent Ambo
parent da6fd1d79e
commit c391a7b7f8

View file

@ -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}
'';