summaryrefslogtreecommitdiffstats
path: root/fstab.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2001-02-15 00:09:33 +0000
committerMike Fulbright <msf@redhat.com>2001-02-15 00:09:33 +0000
commit7731b27dbbef23a568860b2d60b464b06a13e264 (patch)
tree7db9c1db76d7e126a7bb6ef94236ea01d1f1e774 /fstab.py
parenta9e42a3249c6c19ea67ec352108d28a5e7e4af9d (diff)
downloadanaconda-7731b27dbbef23a568860b2d60b464b06a13e264.tar.gz
anaconda-7731b27dbbef23a568860b2d60b464b06a13e264.tar.xz
anaconda-7731b27dbbef23a568860b2d60b464b06a13e264.zip
handle case where label exists on drive, but not in fstab file of rescued system
Diffstat (limited to 'fstab.py')
-rw-r--r--fstab.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/fstab.py b/fstab.py
index cc3e0c589..a0f25fbf3 100644
--- a/fstab.py
+++ b/fstab.py
@@ -1152,11 +1152,10 @@ def readFstab (path, fstab):
if len(fields) >= 6 and fields[0][0:6] == "LABEL=":
label = fields[0][6:]
- device = labelsByMount[label]
-
- fsystem = fields[2]
-
- fstab.addMount(device, fields[1], fsystem)
+ if labelsByMount.has_key(label):
+ device = labelsByMount[label]
+ fsystem = fields[2]
+ fstab.addMount(device, fields[1], fsystem)
elif fields[0][0:7] == "/dev/md":
fstab.addExistingRaidDevice(fields[0][5:], fields[1],
fields[2], raidByDev[int(fields[0][7:])])