lbhelper.auto_scripts package

Submodules

lbhelper.auto_scripts.auto_scripts module

class lbhelper.auto_scripts.auto_scripts.AutoScriptType(*values)

Bases: Enum

Auto 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. If source_script_path is not given, then builtin template will be used. Note that for the builtin config auto script, the distribution (str) and image_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_type will be used.

  • kwargs – Additional kwargs to render the template.

Module contents