diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-02-12 17:00:21 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-02-12 17:00:21 +0000 |
commit | 3f7c27850724036aad47408b78ec3df426bdf0f9 (patch) | |
tree | e0abeb47525f113a53043799313ede374395bc2d /instdata.py | |
parent | 4f8230afc09012781cb7f40a016ca696b9029ef9 (diff) | |
download | anaconda-3f7c27850724036aad47408b78ec3df426bdf0f9.tar.gz anaconda-3f7c27850724036aad47408b78ec3df426bdf0f9.tar.xz anaconda-3f7c27850724036aad47408b78ec3df426bdf0f9.zip |
2006-02-12 Jeremy Katz <katzj@redhat.com>
* instdata.py (InstallData.writeKS): Don't traceback if nfs:/// is
being used like file:///. Useful for live CD case.
Diffstat (limited to 'instdata.py')
-rw-r--r-- | instdata.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/instdata.py b/instdata.py index 74ec21279..316e7f35c 100644 --- a/instdata.py +++ b/instdata.py @@ -188,9 +188,8 @@ class InstallData: for l in lines: minfo = string.split(l) - if len(minfo) > 1 and minfo[1] == mntpt: - nfsinfo = minfo[0] - (srv, dir) = string.split(nfsinfo, ':') + if len(minfo) > 1 and minfo[1] == mntpt and minfo[0].find(":") != -1: + (srv, dir) = minfo[0].split(':') f.write("nfs --server=%s --dir=%s\n" % (srv, dir)) break |