[partition] Add zfs to the filesystem list if the zfs modules is enabled
This commit is contained in:
parent
3dd02edc78
commit
ca3f0e2892
@ -23,6 +23,7 @@
|
|||||||
|
|
||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
|
#include "Settings.h"
|
||||||
#include "partition/FileSystem.h"
|
#include "partition/FileSystem.h"
|
||||||
#include "partition/PartitionQuery.h"
|
#include "partition/PartitionQuery.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
@ -104,7 +105,9 @@ CreatePartitionDialog::CreatePartitionDialog( Device* device,
|
|||||||
QStringList fsNames;
|
QStringList fsNames;
|
||||||
for ( auto fs : FileSystemFactory::map() )
|
for ( auto fs : FileSystemFactory::map() )
|
||||||
{
|
{
|
||||||
if ( fs->supportCreate() != FileSystem::cmdSupportNone && fs->type() != FileSystem::Extended )
|
// We need to ensure zfs is added to the list if the zfs module is enabled
|
||||||
|
if ( ( fs->type() == FileSystem::Type::Zfs && Calamares::Settings::instance()->isModuleEnabled( "zfs" ) )
|
||||||
|
|| ( fs->supportCreate() != FileSystem::cmdSupportNone && fs->type() != FileSystem::Extended ) )
|
||||||
{
|
{
|
||||||
fsNames << userVisibleFS( fs ); // This is put into the combobox
|
fsNames << userVisibleFS( fs ); // This is put into the combobox
|
||||||
if ( fs->type() == defaultFSType )
|
if ( fs->type() == defaultFSType )
|
||||||
|
@ -25,6 +25,7 @@
|
|||||||
|
|
||||||
#include "GlobalStorage.h"
|
#include "GlobalStorage.h"
|
||||||
#include "JobQueue.h"
|
#include "JobQueue.h"
|
||||||
|
#include "Settings.h"
|
||||||
#include "partition/FileSystem.h"
|
#include "partition/FileSystem.h"
|
||||||
#include "utils/Logger.h"
|
#include "utils/Logger.h"
|
||||||
|
|
||||||
@ -89,7 +90,9 @@ EditExistingPartitionDialog::EditExistingPartitionDialog( Device* device,
|
|||||||
QStringList fsNames;
|
QStringList fsNames;
|
||||||
for ( auto fs : FileSystemFactory::map() )
|
for ( auto fs : FileSystemFactory::map() )
|
||||||
{
|
{
|
||||||
if ( fs->supportCreate() != FileSystem::cmdSupportNone && fs->type() != FileSystem::Extended )
|
// We need to ensure zfs is added to the list if the zfs module is enabled
|
||||||
|
if ( ( fs->type() == FileSystem::Type::Zfs && Calamares::Settings::instance()->isModuleEnabled( "zfs" ) )
|
||||||
|
|| ( fs->supportCreate() != FileSystem::cmdSupportNone && fs->type() != FileSystem::Extended ) )
|
||||||
{
|
{
|
||||||
fsNames << userVisibleFS( fs ); // For the combo box
|
fsNames << userVisibleFS( fs ); // For the combo box
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user