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
This commit is contained in:
Antoine Eiche 2019-03-12 11:59:57 +01:00
parent b6a6f7ac98
commit fe6860800b

View file

@ -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))