From d783c7a542433b7227a836e5da304fc6325ce9fd Mon Sep 17 00:00:00 2001 From: vsoch Date: Mon, 24 Oct 2022 06:33:44 -0600 Subject: [PATCH] try different ordering of "--ignore-failed-read" Signed-off-by: vsoch --- container_guts/main/container/docker.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/container_guts/main/container/docker.py b/container_guts/main/container/docker.py index 001e8dc..dc8a61f 100644 --- a/container_guts/main/container/docker.py +++ b/container_guts/main/container/docker.py @@ -91,8 +91,8 @@ def export(self, image, tmpdir=None, cleanup=True): os.makedirs(dirname) try: - self.call(["tar", "-xf", "--ignore-failed-read", export, "-C", export_dir]) - self.call(["tar", "-xf", "--ignore-failed-read", save, "-C", save_dir]) + self.call(["tar", "--ignore-failed-read", "-xf", export, "-C", export_dir]) + self.call(["tar", "--ignore-failed-read", "-xf", save, "-C", save_dir]) except: self.call(["tar", "-xf", export, "-C", export_dir]) self.call(["tar", "-xf", save, "-C", save_dir])