[rhel6-branch] Add nfs options to kickstart if we use nfsiso (#585136)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This fixes not having the nfs options in kickstart file
if we use iso image on nfs.
---
 instdata.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/instdata.py b/instdata.py
index 4195394..c226cd4 100644
--- a/instdata.py
+++ b/instdata.py
@@ -229,12 +229,12 @@ class InstallData:
                     (part, dir) = string.split(m[3:], ":")
 
                 f.write("harddrive --partition=%s --dir=%s\n" % (part, dir))
-            elif m.startswith("nfs:"):
+            elif m.startswith("nfs:") or m.startswith("nfsiso:"):
                 if m.count(":") == 3:
-                    (server, opts, dir) = string.split(m[4:], ":")
+                    (method, server, opts, dir) = m.split(":")
                     f.write("nfs --server=%s --opts=%s --dir=%s" % (server, opts, dir))
                 else:
-                    (server, dir) = string.split(m[4:], ":")
+                    (method, server, dir) = m.split(":")
                     f.write("nfs --server=%s --dir=%s\n" % (server, dir))
             elif m.startswith("ftp://";) or m.startswith("http"):
                 f.write("url --url=%s\n" % urllib.unquote(m))
-- 
1.6.6.1

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux