prevent partitions RAID devices from being part of RAIDs or LVM vgs

This commit is contained in:
Michael Hudson-Doyle 2018-07-23 14:31:52 +12:00
parent 2d3342e5ff
commit 22e4024e91
1 changed files with 2 additions and 0 deletions

View File

@ -575,6 +575,8 @@ class Raid(_Device):
def ok_for_raid(self):
if self._fs is not None:
return False
if len(self._partitions) > 0:
return False
return True
ok_for_lvm_vg = ok_for_raid