From 9082b660965f8f57c1a2f61c0bdd4f6df7cf862b Mon Sep 17 00:00:00 2001 From: Antoine Eiche Date: Mon, 31 Jul 2017 12:25:35 +0200 Subject: dockerTools: fix permissions on base image If the base image has been built with nixpkgs.dockerTools, the image configuration and manifest are readonly so we first need to change their permissions before removing them. Fix #27632. --- pkgs/build-support/docker/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkgs/build-support') diff --git a/pkgs/build-support/docker/default.nix b/pkgs/build-support/docker/default.nix index b6e342cf9b5e..160c3f85977b 100644 --- a/pkgs/build-support/docker/default.nix +++ b/pkgs/build-support/docker/default.nix @@ -437,8 +437,8 @@ rec { echo "Unpacking base image..." tar -C image -xpf "$fromImage" # Do not import the base image configuration and manifest + chmod a+w image image/*.json rm -f image/*.json - rm -f image/manifest.json if [[ -z "$fromImageName" ]]; then fromImageName=$(jshon -k < image/repositories|head -n1) -- cgit 1.4.1