Add setRootPassword option to the Users module.

If set to true, the user must set a root password. Otherwise, the
user won't be asked and a root password will not be set.
This commit is contained in:
Teo Mrnjavac 2015-06-11 04:02:06 +02:00
parent d6441bbcb4
commit 46e90ccda2
5 changed files with 42 additions and 10 deletions

View file

@ -151,5 +151,13 @@ UsersViewStep::setConfigurationMap( const QVariantMap& configurationMap )
Calamares::JobQueue::instance()->globalStorage()->insert( "sudoersGroup",
configurationMap.value( "sudoersGroup" ).toString() );
}
if ( configurationMap.contains( "setRootPassword" ) &&
configurationMap.value( "setRootPassword" ).type() == QVariant::Bool )
{
Calamares::JobQueue::instance()->globalStorage()->insert( "setRootPassword",
configurationMap.value( "setRootPassword" ).toBool() );
m_widget->setShowRootPassword( configurationMap.value( "setRootPassword" ).toBool() );
}
}