image-info: assume bootable=False if key is not present

sfdisk doesn't include the "bootable" key in its output when a partition
is not marked as bootable.
This commit is contained in:
Lars Karlitski 2019-09-30 11:33:22 +02:00 committed by Tom Gundersen
parent 96f3cbf655
commit 457f5f697e

View file

@ -52,7 +52,7 @@ def read_partition_table(device):
for p in ptable["partitions"]:
partitions.append({
"type": p["type"],
"bootable": p["bootable"],
"bootable": p.get("bootable", False),
"start": p["start"] * 512,
"size": p["size"] * 512
})