mirror of
https://github.com/bkerler/edl.git
synced 2024-11-14 19:14:58 -05:00
Merge pull request #514 from bongbui321/fix_setinactive
Fix set partitions from active to inactive
This commit is contained in:
commit
2197a27e94
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