dockerTools.buildImage: do not add /nix/store in the tar stream

Since the /nix/store directory is not immutable, tar can fails if it
has to push it into the layer archive.

Fixes #34137.
This commit is contained in:
Antoine Eiche 2018-02-13 10:44:59 +01:00 committed by Profpatsch
parent 1545f9062e
commit ce838e52b9

View File

@ -476,8 +476,6 @@ rec {
cp ${layer}/* temp/
chmod ug+w temp/*
echo "$(dirname ${storeDir})" >> layerFiles
echo '${storeDir}' >> layerFiles
for dep in $(cat $layerClosure); do
find $dep >> layerFiles
done