Merge pull request #945 from cjlcarvalho/master
- Switch to enum types - Ignore LVM - Check LUKS support Builds locally in my Manjaro test-box and kpmcore 3.3.0
This commit is contained in:
commit
ccdfe53201
@ -129,7 +129,12 @@ QList< Device* > getDevices( DeviceType which, qint64 minimumSize )
|
||||
|
||||
// Remove the device which contains / from the list
|
||||
for ( DeviceList::iterator it = devices.begin(); it != devices.end(); )
|
||||
if ( ! ( *it ) ||
|
||||
if ( (*it)->type() != Device::Type::Disk_Device )
|
||||
{
|
||||
cDebug() << " .. Removing device that is not a Disk_Device from list " << it;
|
||||
it = erase(devices, it );
|
||||
}
|
||||
else if ( ! ( *it ) ||
|
||||
( *it )->deviceNode().startsWith( "/dev/zram" )
|
||||
)
|
||||
{
|
||||
|
@ -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…
Reference in New Issue
Block a user