yet another "prevent used RAID devices from being used twice" bug

This commit is contained in:
Michael Hudson-Doyle 2018-07-24 22:55:04 +12:00
parent 8cbc47a044
commit 952787e884
1 changed files with 2 additions and 0 deletions

View File

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