Only create a ClearMountsJob for dirty devices.

CAL-195
main
Teo Mrnjavac 10 years ago
parent fd0614ab1c
commit 23eca3db55

@ -283,7 +283,8 @@ PartitionCoreModule::jobs() const
for ( auto info : m_deviceInfos )
{
lst << Calamares::job_ptr( new ClearMountsJob( info->device.data() ) );
if ( info->isDirty() )
lst << Calamares::job_ptr( new ClearMountsJob( info->device.data() ) );
}
for ( auto info : m_deviceInfos )

Loading…
Cancel
Save