diff options
author | divanorama <divanorama@gmail.com> | 2021-09-10 19:12:32 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-10 19:12:32 +0200 |
commit | b012fe5e7ea86ef0f4de88ec80fa0e65113e1146 (patch) | |
tree | fe9e78bde20e913b4eb188b47ed0aa531a199125 /pkgs | |
parent | cc3184940f46074638888f39de7d04a96f8d7876 (diff) |
use --verbatim-files-from in dockerTools
https://www.gnu.org/software/tar/manual/html_node/files.html files starting with - can be treated as command line options, which isn't desirable here
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/build-support/docker/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index 9e4709dd9bf80..4bda4d2a5c23f 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -636,7 +636,7 @@ rec { <(sort -n layerFiles|uniq|grep -v ${layer}) -1 -3 > newFiles # Append the new files to the layer. tar -rpf temp/layer.tar --hard-dereference --sort=name --mtime="@$SOURCE_DATE_EPOCH" \ - --owner=0 --group=0 --no-recursion --files-from newFiles + --owner=0 --group=0 --no-recursion --verbatim-files-from --files-from newFiles echo "Adding meta..." |