[partition] Log when an EFI problem has been solved

This commit is contained in:
Adriaan de Groot 2020-11-04 12:32:51 +01:00
parent 0f38ee624e
commit 2c297a068f

View File

@ -716,6 +716,8 @@ PartitionCoreModule::updateIsDirty()
void
PartitionCoreModule::scanForEfiSystemPartitions()
{
const bool wasEmpty = m_efiSystemPartitions.isEmpty();
m_efiSystemPartitions.clear();
QList< Device* > devices;
@ -732,6 +734,11 @@ PartitionCoreModule::scanForEfiSystemPartitions()
{
cWarning() << "system is EFI but no EFI system partitions found.";
}
else if ( wasEmpty )
{
// But it isn't empty anymore, so whatever problem has been solved
cDebug() << "system is EFI and new EFI system partition has been found.";
}
m_efiSystemPartitions = efiSystemPartitions;
}