From f886bbc2f46d3e9663f465b1266fae6ccad82319 Mon Sep 17 00:00:00 2001 From: Jan Kiszka Date: Thu, 11 Nov 2021 08:14:18 +0100 Subject: [PATCH] binman: Fix extract command for using non-absolute image paths Otherwise the updated image will end up in the temporary folder that is purged after completion. Signed-off-by: Jan Kiszka Reviewed-by: Simon Glass --- tools/binman/control.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/binman/control.py b/tools/binman/control.py index 304fc70f56..7da69ba38d 100644 --- a/tools/binman/control.py +++ b/tools/binman/control.py @@ -355,6 +355,7 @@ def ReplaceEntries(image_fname, input_fname, indir, entry_paths, Returns: List of EntryInfo records that were written """ + image_fname = os.path.abspath(image_fname) image = Image.FromFile(image_fname) # Replace an entry from a single file, as a special case -- 2.39.5