[partition] Sample of requirement checking
- There should be at least device to select, overwise we can't continue. The check currently **always** fails, so it blocks installation.
This commit is contained in:
parent
c8e42e6909
commit
16fbe4dc8c
@ -579,5 +579,21 @@ PartitionViewStep::jobs() const
|
|||||||
return m_core->jobs();
|
return m_core->jobs();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Calamares::RequirementsList PartitionViewStep::checkRequirements()
|
||||||
|
{
|
||||||
|
Calamares::RequirementsList l;
|
||||||
|
l.append(
|
||||||
|
{
|
||||||
|
QLatin1Literal("partitions"),
|
||||||
|
[]{ return QString(); },
|
||||||
|
[this]{ return tr("There are no partitons to install on."); },
|
||||||
|
false, // satisfied
|
||||||
|
true // required
|
||||||
|
});
|
||||||
|
|
||||||
|
return l;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
CALAMARES_PLUGIN_FACTORY_DEFINITION( PartitionViewStepFactory, registerPlugin<PartitionViewStep>(); )
|
CALAMARES_PLUGIN_FACTORY_DEFINITION( PartitionViewStepFactory, registerPlugin<PartitionViewStep>(); )
|
||||||
|
@ -66,6 +66,8 @@ public:
|
|||||||
|
|
||||||
QList< Calamares::job_ptr > jobs() const override;
|
QList< Calamares::job_ptr > jobs() const override;
|
||||||
|
|
||||||
|
Calamares::RequirementsList checkRequirements() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
void initPartitionCoreModule();
|
void initPartitionCoreModule();
|
||||||
void continueLoading();
|
void continueLoading();
|
||||||
|
Loading…
Reference in New Issue
Block a user