From 244cb35eca68742f3043e2c6a17669a46ec1fae3 Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Tue, 8 Jun 2021 09:21:45 +0200 Subject: [PATCH] image-info: fix read_partition() call One occurrance of read_partition() call have not been modified as part of previous commit [1], which is a bug. [1] https://github.com/osbuild/osbuild-composer/commit/598c2b69393e7aa51ba3d30996e1abab490adce2 Signed-off-by: Tomas Hozza --- tools/image-info | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/image-info b/tools/image-info index 161218172..f4017a197 100755 --- a/tools/image-info +++ b/tools/image-info @@ -238,7 +238,9 @@ def read_partition_table(device): try: sfdisk = subprocess_check_output(["sfdisk", "--json", device], json.loads) except subprocess.CalledProcessError: - partitions.append(read_partition(device, False)) + # This handles a case, when the device does contain a filesystem, + # but there is no partition table. + partitions.append(read_partition(device, {})) return info ptable = sfdisk["partitiontable"]