[elbe-devel] [PATCH 0/4] elbepack: initvm: introduce a dedicated initvm class

Thomas Weißschuh thomas.weissschuh at linutronix.de
Fri Jul 26 13:45:53 CEST 2024


Instead of keeping the logic in the CLI handlers and forcing all initvm
interaction going through the CLI, introduce a dedicated class hierarchy
for initvms.
This enables easier interaction with the initvm throughout the codebase.
It removes the need to roundtrip all configuration parameters through
the CLI calls and make it easier to introduce new types of initvms with
different configurations.

In addition this will make it easier to migrate "elbe initvm" to
argparse.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
Thomas Weißschuh (4):
      elbepack: initvm: drop unused InitVMError
      elbepack: initvm: simplify command dispatch
      elbepack: initvm: introduce a dedicated initvm class
      elbepack: replace calls to run_elbe('initvm') with method calls

 debian/python3-elbe-common.install |   1 +
 elbepack/commands/initvm.py        |  12 +-
 elbepack/initvm.py                 | 410 ++++++++++++++++++++++++++++++++
 elbepack/initvmaction.py           | 470 +++----------------------------------
 4 files changed, 443 insertions(+), 450 deletions(-)
---
base-commit: e4a0e331ee6f0bec03af434ff313902e5f3cd424
change-id: 20240612-initvm-class-7290150dc1ac

Best regards,
-- 
Thomas Weißschuh <thomas.weissschuh at linutronix.de>



More information about the elbe-devel mailing list