From f7e11d34b1e8499172606731dbab2662889fc344 Mon Sep 17 00:00:00 2001
From: Daniel J Walsh <dwalsh@redhat.com>
Date: Thu, 8 Oct 2020 16:22:53 -0400
Subject: BlobInfoCacheDir is set incorrectly when copying images

It is not set based on the root image directory, and always
points at the defaults.  This change will get it to follow
filepath.Join(ir.store.GraphRoot(), "cache") set from libpod.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
---
 libpod/image/docker_registry_options.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/libpod/image/docker_registry_options.go b/libpod/image/docker_registry_options.go
index 257b7ae8d..835473a1f 100644
--- a/libpod/image/docker_registry_options.go
+++ b/libpod/image/docker_registry_options.go
@@ -55,6 +55,7 @@ func (o DockerRegistryOptions) GetSystemContext(parent *types.SystemContext, add
 		sc.DockerRegistryUserAgent = parent.DockerRegistryUserAgent
 		sc.OSChoice = parent.OSChoice
 		sc.ArchitectureChoice = parent.ArchitectureChoice
+		sc.BlobInfoCacheDir = parent.BlobInfoCacheDir
 	}
 	return sc
 }
-- 
cgit v1.2.3-54-g00ecf