Skip to content

Commit

Permalink
Update partedPartition before (un)setting partition flags
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Dec 1, 2015
1 parent 32f5239 commit e40f1f8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions blivet/deviceaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ def execute(self, callbacks=None):
callbacks.create_format_pre(CreateFormatPreData(msg))

if isinstance(self.device, PartitionDevice):
# update partedPartition to point to the partition on the disklabel
self.device.partedPartition = self.device.disk.format.partedDisk.getPartitionByPath(self.device.path)
for flag in partitionFlag.keys():
# Keep the LBA flag on pre-existing partitions
if flag in [ PARTITION_LBA, self.format.partedFlag ]:
Expand Down

0 comments on commit e40f1f8

Please sign in to comment.