summaryrefslogtreecommitdiffstats
path: root/fsset.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-07-24 23:38:49 +0000
committerJeremy Katz <katzj@redhat.com>2003-07-24 23:38:49 +0000
commitc17bd6943f8956a9b8bf97965cc6006cf48be649 (patch)
tree9564aa9e052972b74413263bf5b0e4ac04c9f5a5 /fsset.py
parent3c2186624f2c533e8de56296651d32d93255e5f1 (diff)
downloadanaconda-c17bd6943f8956a9b8bf97965cc6006cf48be649.tar.gz
anaconda-c17bd6943f8956a9b8bf97965cc6006cf48be649.tar.xz
anaconda-c17bd6943f8956a9b8bf97965cc6006cf48be649.zip
shenanigans to handle ext3,ext2 format in fstab (#91389)
Diffstat (limited to 'fsset.py')
-rw-r--r--fsset.py21
1 files changed, 15 insertions, 6 deletions
diff --git a/fsset.py b/fsset.py
index e676b9d1c..497c8281e 100644
--- a/fsset.py
+++ b/fsset.py
@@ -2049,15 +2049,24 @@ def readFstab (path, intf = None):
fields.append(0)
elif len(fields) > 6:
continue
-
- # if we don't support mounting the filesystem, continue
- if not fileSystemTypes.has_key(fields[2]):
- continue
if string.find(fields[3], "noauto") != -1: continue
- fsystem = fileSystemTypeGet(fields[2])
+ # shenanigans to handle ext3,ext2 format in fstab
+ fstotry = fields[2]
+ if fstotry.find(","):
+ fs = fstotry.split(",")
+ else:
+ fs = [ fstotry ]
+ for fs in fstotry:
+ # if we don't support mounting the filesystem, continue
+ if not fileSystemTypes.has_key(fs):
+ continue
+ fsystem = fileSystemTypeGet(fs)
+ break
+ if fsystem is None:
+ continue
+
label = None
-
if fields[0] == "none":
device = Device()
elif ((string.find(fields[3], "bind") != -1) and