image-info: support analyzing gce image type

Signed-off-by: Tomas Hozza <thozza@redhat.com>
This commit is contained in:
Tomas Hozza 2021-12-22 12:54:57 +01:00 committed by Tom Gundersen
parent 800d57fda8
commit 46e15794f0

View file

@ -2675,7 +2675,11 @@ def analyse_tarball(path):
subprocess.run(command,
stdout=sys.stderr,
check=True)
return analyse_directory(tree)
# gce image type contains virtual raw disk inside a tarball
if os.path.isfile(f"{tree}/disk.raw"):
return analyse_image(f"{tree}/disk.raw")
else:
return analyse_directory(tree)
def is_compressed(path):