summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-07-24 14:22:23 +0000
committerErik Troan <ewt@redhat.com>2000-07-24 14:22:23 +0000
commit2a4ff0cef8ba94db2c1eee062e62c49ddcff5d61 (patch)
treec47da03494180b2788c949ac046459287b88e253 /fstab.py
parent1090a4251a75887dbf907e0739463a5b943a8ee5 (diff)
downloadanaconda-2a4ff0cef8ba94db2c1eee062e62c49ddcff5d61.tar.gz
anaconda-2a4ff0cef8ba94db2c1eee062e62c49ddcff5d61.tar.xz
anaconda-2a4ff0cef8ba94db2c1eee062e62c49ddcff5d61.zip
fixed problems pasrsing LOOP out of fstab
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/fstab.py b/fstab.py
index 155e652ff..6f598b66a 100644
--- a/fstab.py
+++ b/fstab.py
@@ -962,7 +962,7 @@ def readFstab (path, fstab):
if not fields: continue
- if fields[0] == "#" and len(fields)>4 and fields[2:6] == "LOOP":
+ if fields[0] == "#" and len(fields)>4 and fields[1][0:4] == "LOOP":
device = string.lower(fields[1])
if device[len(device) - 1] == ":":
device = device[0:len(device) - 1]
@@ -971,7 +971,7 @@ def readFstab (path, fstab):
realDevice = realDevice[5:]
loopIndex[device] = (realDevice, fields[3])
- elif fields and fields[0][0] == '#':
+ elif line[0] == "#":
# skip comments
continue