[elbe-devel] [PATCH 1/4] hdimg: run tune2fs after umount
Torben Hohn
torben.hohn at linutronix.de
Mon Mar 29 13:03:11 CEST 2021
Its obvious that a filesystem should be umounted before running
tune2fs on it.
Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>
---
elbepack/hdimg.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index 9194f6c23..bfcbca690 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -360,8 +360,8 @@ def create_label(disk, part, ppart, fslabel, target, grub):
(os.path.join(target, "filesystems", entry.id),
os.path.join(target, "imagemnt")),
allow_fail=True)
- entry.tuning(loopdev)
do('umount %s' % loopdev)
+ entry.tuning(loopdev)
do('losetup -d %s' % loopdev)
return ppart
--
2.20.1
More information about the elbe-devel
mailing list