[elbe-devel] [PATCH 1/4] hdimg: run tune2fs after umount

Bastian Germann bage at linutronix.de
Mon Mar 29 14:03:57 CEST 2021


Am 29.03.21 um 13:03 schrieb Torben Hohn:
> Its obvious that a filesystem should be umounted before running
> tune2fs on it.
> 
> Signed-off-by: Torben Hohn <torben.hohn at linutronix.de>

Reviewed-by: Bastian Germann <bage 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
> 


More information about the elbe-devel mailing list