Add option to run process jobmodules in chroot.

This commit is contained in:
Teo Mrnjavac 2014-08-12 14:26:10 +02:00
parent 27a10fd08b
commit 7a3ce363b3
8 changed files with 142 additions and 30 deletions

View file

@ -49,6 +49,7 @@ ProcessJobModule::loadSelf()
m_job = Calamares::job_ptr( new ProcessJob( m_command,
m_workingPath,
m_runInChroot,
m_secondsTimeout ) );
m_loaded = true;
}
@ -78,6 +79,12 @@ ProcessJobModule::initFrom( const YAML::Node& node )
{
m_secondsTimeout = node[ "timeout" ].as< int >();
}
m_runInChroot = false;
if ( node[ "chroot" ] )
{
m_runInChroot = node[ "chroot" ].as< bool >();
}
}