Skip to content

Commit

Permalink
Unset obsolete format before updating device size.
Browse files Browse the repository at this point in the history
The format type can impose limits on the size of the device, so
clear it before setting the size.
  • Loading branch information
dwlehman committed Jul 24, 2015
1 parent 7dab197 commit a5000d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions blivet/devicefactory.py
Expand Up @@ -676,6 +676,10 @@ def _set_raid_level(self):
pass

def _set_size(self):
# reset the device's format before allocating partitions, &c
if self.device.format.type != self.fstype:
self.device.format = None

# this is setting the device size based on the factory size and the
# current size of the container
self._set_device_size()
Expand Down

0 comments on commit a5000d4

Please sign in to comment.