[elbe-devel] [PATCH v2] Fix passno option handling

Yegor Yefremov yegorslists at googlemail.com
Wed Sep 12 11:58:49 CEST 2018


On Thu, Aug 16, 2018 at 1:54 PM <yegorslists at googlemail.com> wrote:
>
> From: Yegor Yefremov <yegorslists at googlemail.com>
>
> Passno option is a child of fs element and should be handled the same way
> as mkfs option.
>
> Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
> ---
> Changes v1 -> v2:
>         * replace tabs with spaces
>
>  elbepack/fstab.py | 5 +----
>  1 file changed, 1 insertion(+), 4 deletions(-)
>
> diff --git a/elbepack/fstab.py b/elbepack/fstab.py
> index ed0a10a0..9f8aa0bd 100644
> --- a/elbepack/fstab.py
> +++ b/elbepack/fstab.py
> @@ -83,10 +83,7 @@ class fstabentry(object):
>          if entry.has("fs"):
>              self.fstype = entry.text("fs/type")
>              self.mkfsopt = entry.text("fs/mkfs", default="")
> -        if entry.has("passno"):
> -            self.passno = entry.text("passno")
> -        else:
> -            self.passno = "0"
> +            self.passno = entry.text("fs/passno", default="0")
>
>          self.id = str(id)

I think this patch should be applied to both elbe-2.0 and elbe-3.0

Yegor



More information about the elbe-devel mailing list