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

yegorslists at googlemail.com yegorslists at googlemail.com
Thu Aug 16 13:48:13 CEST 2018


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>
---
 elbepack/fstab.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/elbepack/fstab.py b/elbepack/fstab.py
index ed0a10a..a1714b4 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)
 
-- 
2.1.4




More information about the elbe-devel mailing list