[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[PATCH] 474484 - translate ext4dev -> ext4 in /etc/fstab



For a brief time, we had ext4dev as the fs type for ext4.  That means
it'd end up in /etc/fstab.  The attached patch makes readFstab
understand this possibility and read it as ext4.

- Chris


diff --git a/fsset.py b/fsset.py
index bb8b2a2..005c647 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2873,6 +2873,12 @@ def readFstab (anaconda):
             fstotry = fstotry.split(",")
         else:
             fstotry = [ fstotry ]
+
+        # ext4 used to be listed as ext4dev, so handle that possibility
+        for i in range(0, len(fstotry)):
+            if fstotry[i] == "ext4dev":
+                fstotry[i] = "ext4"
+
         fsystem = None
         for fs in fstotry:
             # if we don't support mounting the filesystem, continue


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]