summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu7
1 files changed, 3 insertions, 4 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index 4fb85177e3..3a339acc2a 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -450,11 +450,10 @@ class BaseConfig(object):
450 try: 450 try:
451 subprocess.check_call(['zstd', '-d', image_path, '-o', uncompressed_path]) 451 subprocess.check_call(['zstd', '-d', image_path, '-o', uncompressed_path])
452 except subprocess.CalledProcessError as e: 452 except subprocess.CalledProcessError as e:
453 self.cleanup_files.append(uncompressed_path)
454 raise RunQemuError(f"Failed to decompress {self.rootfs}: {e}") 453 raise RunQemuError(f"Failed to decompress {self.rootfs}: {e}")
455 454 finally:
456 # Mark for deletion at the end 455 # Mark temporary file for deletion
457 self.cleanup_files.append(uncompressed_path) 456 self.cleanup_files.append(uncompressed_path)
458 457
459 # Use the decompressed image as the rootfs 458 # Use the decompressed image as the rootfs
460 self.rootfs = uncompressed_path 459 self.rootfs = uncompressed_path