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

yegorslists at googlemail.com yegorslists at googlemail.com
Thu Aug 16 13:54:40 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>
---
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)
 
-- 
2.17.0




More information about the elbe-devel mailing list