lbhelper.auto_scripts package¶
Submodules¶
lbhelper.auto_scripts.auto_scripts module¶
- class lbhelper.auto_scripts.auto_scripts.AutoScriptType(*values)¶
Bases:
EnumAuto script type.
- CLEAN = 'clean'¶
Clean script.
- BUILD = 'build'¶
Build script.
- CONFIG = 'config'¶
Config script.
- lbhelper.auto_scripts.auto_scripts.write_auto_script(iso_build_dir: Path, script_type: AutoScriptType, source_script_path: Path = None, **kwargs)¶
Write specified auto script to
defaults.AUTO_SCRIPT_PATH. Target script path is predefined in this function. Ifsource_script_pathis not given, then builtin template will be used. Note that for the builtin config auto script, thedistribution (str)andimage_name (str)are required.- Parameters:
iso_build_dir (pathlib.Path) – Image build directory.
script_type (AutoScriptType) – Which type of auto script to write.
source_script_path (pathlib.Path,Optional) – Source script template. If not given, then builtin auto script template mapped to the given
script_typewill be used.kwargs – Additional kwargs to render the template.