Skip to content

Commit

Permalink
Remove partitions etc as needed when setting up disk volume.
Browse files Browse the repository at this point in the history
  • Loading branch information
dwlehman authored and pcahyna committed Jun 12, 2020
1 parent cd96744 commit 5a546b4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/blivet.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,8 @@ def _reformat(self):

if self._device.format.status and (self._device.format.mountable or self._device.format.type == "swap"):
self._device.format.teardown()
if not self._device.isleaf:
self._blivet.devicetree.recursive_remove(self._device, remove_device=False)
self._blivet.format_device(self._device, fmt)

def manage(self):
Expand Down

0 comments on commit 5a546b4

Please sign in to comment.