From a45aaec51be15955b453a5d43889934d7dee589f Mon Sep 17 00:00:00 2001 From: David Lehman Date: Mon, 28 Oct 2019 17:05:35 -0400 Subject: [PATCH] Remove partitions etc as needed when setting up disk volume. --- library/blivet.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/blivet.py b/library/blivet.py index 3c9b464f..0c2354ad 100644 --- a/library/blivet.py +++ b/library/blivet.py @@ -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):