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:
parent
96f3cbf655
commit
457f5f697e
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue