prevent partitions RAID devices from being part of RAIDs or LVM vgs
This commit is contained in:
parent
2d3342e5ff
commit
22e4024e91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue