diff options
author | Jeremy Katz <katzj@redhat.com> | 2003-07-24 23:38:49 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2003-07-24 23:38:49 +0000 |
commit | c17bd6943f8956a9b8bf97965cc6006cf48be649 (patch) | |
tree | 9564aa9e052972b74413263bf5b0e4ac04c9f5a5 /fsset.py | |
parent | 3c2186624f2c533e8de56296651d32d93255e5f1 (diff) | |
download | anaconda-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.py | 21 |
1 files changed, 15 insertions, 6 deletions
@@ -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 |