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 committed Oct 31, 2019
1 parent 16b3aa0 commit a45aaec
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 @@ -221,6 +221,8 @@ def _reformat(self):

if self._device.format.status and not packages_only:
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 a45aaec

Please sign in to comment.