diff options
author | Antoine Eiche <lewo@abesis.fr> | 2019-03-12 11:59:57 +0100 |
---|---|---|
committer | Antoine Eiche <lewo@abesis.fr> | 2019-03-12 12:04:22 +0100 |
commit | fe6860800b1e3729e6d05968f788c2b0eb7f8a01 (patch) | |
tree | 6e10521a05b84bb3e011d01da069f522f9a27e98 /pkgs/build-support | |
parent | b6a6f7ac989d782e67a9a8ef7abac83355858977 (diff) | |
download | nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar.gz nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar.bz2 nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar.lz nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar.xz nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.tar.zst nixlib-fe6860800b1e3729e6d05968f788c2b0eb7f8a01.zip |
dockerTools.buildImage.runAsRoot: preserve layers ordering at image unpacking
This patch preserves the ordering of layers of a parent image when the image is unpacked. Fixes #55290
Diffstat (limited to 'pkgs/build-support')
-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 8d47f1570138..6efb447e1424 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -200,7 +200,7 @@ rec { # Unpack all of the parent layers into the image. lowerdir="" extractionID=0 - for layerTar in $(cat layer-list); do + for layerTar in $(tac layer-list); do echo "Unpacking layer $layerTar" extractionID=$((extractionID + 1)) |