From 44d651485a1303756b746c9361e602a16c502b92 Mon Sep 17 00:00:00 2001 From: Luca Bruno Date: Wed, 13 Apr 2016 23:56:06 +0200 Subject: [PATCH] dockerTools: fix difference between base files and layer files --- pkgs/build-support/docker/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index e2b03778bffa..1a7ed88223b9 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -295,6 +295,7 @@ EOF echo Adding layer tar -tf temp/layer.tar >> baseFiles + sed 's/^\.//' -i baseFiles comm <(sort -n baseFiles|uniq) <(sort -n layerFiles|uniq|grep -v ${layer}) -1 -3 > newFiles tar -rpf temp/layer.tar --no-recursion --files-from newFiles 2>/dev/null || true