mirror of
https://github.com/parchlinux/calamares.git
synced 2025-07-01 19:35:36 -04:00
Add option to run process jobmodules in chroot.
This commit is contained in:
parent
27a10fd08b
commit
7a3ce363b3
8 changed files with 142 additions and 30 deletions
|
@ -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 >();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue