[elbe-devel] [PATCH v2 2/8] elbepack: hdimg: drop duplicate loopdev creation
Thomas Weißschuh
thomas.weissschuh at linutronix.de
Wed May 8 16:03:21 CEST 2024
With the move to the contextmanager, the standalone-call should have
been dropped.
Fixes: f3e474dc9732 ("elbepack: unify losetup execution into context manager")
Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
elbepack/hdimg.py | 2 --
1 file changed, 2 deletions(-)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index 0175f5695a16..758ebae531a2 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -316,8 +316,6 @@ def create_label(disk, part, ppart, fslabel, target, grub):
grub.add_fs_entry(entry)
- loopdev = entry.losetup()
-
with entry.losetup() as loopdev:
do(
f'mkfs.{entry.fstype} {entry.mkfsopt} {entry.get_label_opt()} '
--
2.45.0
More information about the elbe-devel
mailing list