use backupgpt

This commit is contained in:
bongbui321 2024-04-17 05:23:13 -04:00
parent 7689ab1007
commit e89f40adb5

View file

@ -1462,7 +1462,7 @@ class firehose(metaclass=LogBase):
else:
for partitionname_a in guid_gpt_a.partentries:
slot = partitionname_a.lower()[-2:]
partition_a = guid_gpt_a.partentries[partitionname_a]
partition_a = backup_guid_gpt_a.partentries[partitionname_a]
if slot == "_a":
active_a = ((partition_a.flags >> (AB_FLAG_OFFSET*8))&0xFF) & AB_PARTITION_ATTR_SLOT_ACTIVE == AB_PARTITION_ATTR_SLOT_ACTIVE
if (active_a and slot_a_status) or (not active_a and slot_b_status):