Disable copying newly created Luks partitions.
This commit is contained in:
parent
b896a2abf3
commit
9c2f187ed9
|
@ -281,6 +281,9 @@ bool CopyOperation::canCopy(const Partition* p)
|
|||
if (p == nullptr)
|
||||
return false;
|
||||
|
||||
if (p->state() == Partition::StateNew && p->roles().has(PartitionRole::Luks))
|
||||
return false;
|
||||
|
||||
if (p->isMounted())
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Reference in New Issue