[partition] Complain about unsupported swap choices
This commit is contained in:
parent
273461a497
commit
2fda5957f1
@ -614,6 +614,17 @@ PartitionViewStep::setConfigurationMap( const QVariantMap& configurationMap )
|
|||||||
}
|
}
|
||||||
m_swapChoices = choices;
|
m_swapChoices = choices;
|
||||||
|
|
||||||
|
// Not all are supported right now // FIXME
|
||||||
|
static const char unsupportedSetting[] = "Partition-module does not support *userSwapChoices* setting";
|
||||||
|
|
||||||
|
#define COMPLAIN_UNSUPPORTED(x) \
|
||||||
|
if ( choices.contains( x ) ) \
|
||||||
|
{ cWarning() << unsupportedSetting << PartitionActions::Choices::choiceToName( x ); }
|
||||||
|
|
||||||
|
COMPLAIN_UNSUPPORTED( PartitionActions::Choices::SwapChoice::SwapFile )
|
||||||
|
COMPLAIN_UNSUPPORTED( PartitionActions::Choices::SwapChoice::ReuseSwap )
|
||||||
|
#undef COMPLAIN_UNSUPPORTED
|
||||||
|
|
||||||
// These gs settings seem to be unused (in upstream Calamares) outside of
|
// These gs settings seem to be unused (in upstream Calamares) outside of
|
||||||
// the partition module itself.
|
// the partition module itself.
|
||||||
gs->insert( "ensureSuspendToDisk", ensureSuspendToDisk );
|
gs->insert( "ensureSuspendToDisk", ensureSuspendToDisk );
|
||||||
|
Loading…
Reference in New Issue
Block a user