[partition] Log in more human-readable form

This commit is contained in:
Adriaan de Groot 2022-03-01 14:37:52 +01:00
parent 9b3bc3d25f
commit 4fe55533d7

View File

@ -25,14 +25,15 @@ AutoMountManagementJob::prettyName() const
Calamares::JobResult Calamares::JobResult
AutoMountManagementJob::exec() AutoMountManagementJob::exec()
{ {
cDebug() << ( m_stored ? "restore" : m_disable ? "disable" : "enable" );
if ( m_stored ) if ( m_stored )
{ {
cDebug() << "Restore automount settings";
CalamaresUtils::Partition::automountRestore( m_stored ); CalamaresUtils::Partition::automountRestore( m_stored );
m_stored.reset(); m_stored.reset();
} }
else else
{ {
cDebug() << "Set automount to" << ( m_disable ? "disable" : "enable" );
m_stored = CalamaresUtils::Partition::automountDisable( m_disable ); m_stored = CalamaresUtils::Partition::automountDisable( m_disable );
} }
return Calamares::JobResult::ok(); return Calamares::JobResult::ok();