image-info: include partition table id
Signed-off-by: Tom Gundersen <teg@jklm.no>
This commit is contained in:
parent
ed185b41ce
commit
41c6f5dd0b
1 changed files with 2 additions and 2 deletions
|
|
@ -77,7 +77,7 @@ def read_partition_table(device):
|
|||
"size": p["size"] * 512
|
||||
})
|
||||
|
||||
return ptable["label"], partitions
|
||||
return ptable["label"], ptable["id"], partitions
|
||||
|
||||
|
||||
def read_bootloader_type(device):
|
||||
|
|
@ -120,7 +120,7 @@ report = {}
|
|||
with nbd_connect(image) as device:
|
||||
report["image-format"] = read_image_format(image)
|
||||
report["bootloader"] = read_bootloader_type(device)
|
||||
report["partition-table"], report["partitions"] = read_partition_table(device)
|
||||
report["partition-table"], report["partition-table-id"], report["partitions"] = read_partition_table(device)
|
||||
|
||||
n_partitions = len(report["partitions"])
|
||||
for n in range(1, n_partitions + 1):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue