mirror of
https://github.com/bkerler/edl.git
synced 2025-02-17 12:10:38 -05:00
fix set inactive slot
This commit is contained in:
parent
3bfb87f663
commit
226699f392
1 changed files with 1 additions and 1 deletions
|
@ -498,7 +498,7 @@ class gpt(metaclass=LogBase):
|
|||
if active:
|
||||
flags |= AB_PARTITION_ATTR_SLOT_ACTIVE << (AB_FLAG_OFFSET*8)
|
||||
else:
|
||||
flags &= AB_PARTITION_ATTR_UNBOOTABLE << (AB_FLAG_OFFSET*8)
|
||||
flags &= ~(AB_PARTITION_ATTR_SLOT_ACTIVE << (AB_FLAG_OFFSET*8))
|
||||
partentry.flags = flags
|
||||
pdata = partentry.create()
|
||||
return pdata, partition.entryoffset
|
||||
|
|
Loading…
Reference in a new issue