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

Torben Hohn torben.hohn at linutronix.de
Tue Jun 25 16:01:19 CEST 2019


On Tue, Jun 25, 2019 at 02:40:06PM +0200, dion at linutronix.de wrote:
> 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")

this is in the grubinstaller, doesnt need to call tune2fs.

>                  self.outf.do('umount /dev/poop2', allow_fail=True)
>                  self.outf.do('losetup -d /dev/poop2', allow_fail=True)
>  
> +            self.root.tuning("/dev/poop1")

this is in the grubinstaller, doesnt need to call tune2fs.

>              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")

this should be sufficient.

>      outf.do('umount /dev/loop0')
>      outf.do('losetup -d /dev/loop0')
>  
> -- 
> 2.11.0
> 
> 
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel

-- 
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99

Hinweise zum Datenschutz finden Sie hier (Informations on data privacy 
can be found here): https://linutronix.de/kontakt/Datenschutz.php

Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen | 
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700 
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner



More information about the elbe-devel mailing list