diff options
author | Mike Fulbright <msf@redhat.com> | 2001-02-15 00:09:33 +0000 |
---|---|---|
committer | Mike Fulbright <msf@redhat.com> | 2001-02-15 00:09:33 +0000 |
commit | 7731b27dbbef23a568860b2d60b464b06a13e264 (patch) | |
tree | 7db9c1db76d7e126a7bb6ef94236ea01d1f1e774 /fstab.py | |
parent | a9e42a3249c6c19ea67ec352108d28a5e7e4af9d (diff) | |
download | anaconda-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.py | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -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:])]) |