Prevent deletion of open LUKS mappings (#774818)
At least until closing LUKS mappings is supported. Bug 774818 - Implement LUKS read-write actions NOT requiring a passphrase
This commit is contained in:
parent
36804b9634
commit
f1e3d42b56
|
@ -1245,7 +1245,8 @@ void Win_GParted::set_valid_operations()
|
|||
allow_format( true ) ;
|
||||
|
||||
// only allow deletion of partitions within a partition table
|
||||
if ( ! selected_partition_ptr->whole_device )
|
||||
// Also exclude open LUKS mappings until open/close is supported
|
||||
if ( ! selected_partition_ptr->whole_device & ! selected_partition_ptr->busy )
|
||||
allow_delete( true );
|
||||
|
||||
// Resizing/moving always requires the ability to update the partition
|
||||
|
|
Loading…
Reference in New Issue