[elbe-devel] [PATCH 2/3] Do tune2fs of fstabentry before unmouting loop devices

dion at linutronix.de dion at linutronix.de
Tue Jun 25 14:40:06 CEST 2019


From: Olivier Dion <dion at linutronix.de>

Signed-off-by: Olivier Dion <dion at linutronix.de>
---
 elbepack/hdimg.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/elbepack/hdimg.py b/elbepack/hdimg.py
index 771c9a35..7874e76f 100644
--- a/elbepack/hdimg.py
+++ b/elbepack/hdimg.py
@@ -345,9 +345,11 @@ class grubinstaller199(grubinstaller_base):
             self.outf.do("losetup -d /dev/poop0", allow_fail=True)
 
             if self.boot:
+                self.boot.tuning("/dev/poop2")
                 self.outf.do('umount /dev/poop2', allow_fail=True)
                 self.outf.do('losetup -d /dev/poop2', allow_fail=True)
 
+            self.root.tuning("/dev/poop1")
             self.outf.do('umount /dev/poop1', allow_fail=True)
             self.outf.do('losetup -d /dev/poop1', allow_fail=True)
 
@@ -426,6 +428,7 @@ def create_label(outf, disk, part, ppart, fslabel, target, grub):
         (os.path.join(
             target, "filesystems", entry.id), os.path.join(
             target, "imagemnt")), allow_fail=True)
+    entry.tuning("/dev/loop0")
     outf.do('umount /dev/loop0')
     outf.do('losetup -d /dev/loop0')
 
-- 
2.11.0




More information about the elbe-devel mailing list