mirror of
https://github.com/parchlinux/calamares.git
synced 2025-06-27 17:35:37 -04:00
[partition] Checking if there is LUKS creation support and if partition is not Extended before enabling encryption in CreatePartitionDialog.
This commit is contained in:
parent
f561f04591
commit
77d2667b53
1 changed files with 3 additions and 1 deletions
|
@ -261,7 +261,9 @@ CreatePartitionDialog::updateMountPointUi()
|
|||
FileSystem::Type type = FileSystem::typeForName( m_ui->fsComboBox->currentText() );
|
||||
enabled = !s_unmountableFS.contains( type );
|
||||
|
||||
if ( FS::luks::canEncryptType( type ) )
|
||||
if ( FileSystemFactory::map()[FileSystem::Type::Luks]->supportCreate() &&
|
||||
FS::luks::canEncryptType( type ) &&
|
||||
!m_role.has( PartitionRole::Extended ) )
|
||||
{
|
||||
m_ui->encryptWidget->show();
|
||||
m_ui->encryptWidget->reset();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue