parttool: Fix regression when parsing binary partition data
Regression in a91de43537
This commit is contained in:
parent
bdb0851065
commit
59649ea825
1 changed files with 1 additions and 0 deletions
|
@ -96,6 +96,7 @@ class ParttoolTarget():
|
|||
partition_table = None
|
||||
with open(partition_table_file, "rb") as f:
|
||||
input_is_binary = (f.read(2) == gen.PartitionDefinition.MAGIC_BYTES)
|
||||
f.seek(0)
|
||||
if input_is_binary:
|
||||
partition_table = gen.PartitionTable.from_binary(f.read())
|
||||
|
||||
|
|
Loading…
Reference in a new issue