[elbe-devel] [PATCH v2 0/8] elbepack: introduce and use mount helper

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed May 8 16:03:19 CEST 2024


Instead of open-coding call to mount(8) use a context manager for better
resource management.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
Changes in v2:
- Also switch over elbepack/efisystem.py
- Make the mount() helper a non-generator class for RPCAptCache compat

---
Thomas Weißschuh (8):
      elbepack: hdimg: correct order of loopdev creation and teardown
      elbepack: hdimg: drop duplicate loopdev creation
      elbepack: imgutils: add mount helper
      elbepack: fetch_initvm_pkgs: use mount helper
      elbepack: hdimg: use mount helper
      elbepack: finetuning: use mount helper
      elbepack: efilesystem: use mount helper
      elbepack: hdimg: simplify grub device.map handling

 elbepack/commands/fetch_initvm_pkgs.py | 10 ++--
 elbepack/efilesystem.py                | 50 ++++++------------
 elbepack/filesystem.py                 | 17 ------
 elbepack/finetuning.py                 | 14 ++---
 elbepack/hdimg.py                      | 94 +++++++++++-----------------------
 elbepack/imgutils.py                   | 42 +++++++++++++++
 6 files changed, 101 insertions(+), 126 deletions(-)
---
base-commit: c4d2d11ef1f913688c9a97fbfe48d09a584adb21
change-id: 20240430-mount-32c5fbabe604

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



More information about the elbe-devel mailing list