Skip to content

Commit

Permalink
Add support for removing Stratis pools with children
Browse files Browse the repository at this point in the history
  • Loading branch information
vojtechtrefny committed Apr 8, 2021
1 parent a44d8dc commit c18c172
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions blivetgui/list_partitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def _add_to_store(self, device, parent_iter=None):
return device_iter

def _allow_recursive_delete_device(self, device):
if device.type not in ("btrfs volume", "mdarray", "lvmvg"):
if device.type not in ("btrfs volume", "mdarray", "lvmvg", "stratis_pool"):
return False

def _device_descendants(device):
Expand Down Expand Up @@ -269,7 +269,7 @@ def _allow_add_device(self, device):
if device.protected:
return False

if device.type in ("free space", "btrfs volume", "lvmthinpool"):
if device.type in ("free space", "btrfs volume", "lvmthinpool", "stratis_pool"):
return True

# empty lvmpv
Expand Down

0 comments on commit c18c172

Please sign in to comment.