summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog6
-rwxr-xr-xanaconda3
-rw-r--r--iscsi.py14
-rw-r--r--iw/iscsi_gui.py4
4 files changed, 22 insertions, 5 deletions
diff --git a/ChangeLog b/ChangeLog
index 8e418e315..5e3d5340d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
2006-06-15 Jeremy Katz <katzj@redhat.com>
+ * iw/iscsi_gui.py (iscsiWindow.getNext): Hack for iscsi to stabilize
+
+ * iscsi.py (iscsi.write): Write out iscsi config bits
+
+ * anaconda (opts.iscsi): Actually handle the iscsi flag
+
* loader2/net.c: Hack for s390 to work for now
* isys/isys.py (inet_ntoa): Fix on 64bit machines
diff --git a/anaconda b/anaconda
index 4b93615a1..847f29917 100755
--- a/anaconda
+++ b/anaconda
@@ -686,6 +686,9 @@ if __name__ == "__main__":
if len(cargs[1]) > 0:
vncconnectport = cargs[1]
+ if opts.iscsi:
+ flags.iscsi = 1
+
# probing for hardware on an s390 seems silly...
if rhpl.getArch() == "s390":
opts.isHeadless = True
diff --git a/iscsi.py b/iscsi.py
index f9f396d26..fc8282ba5 100644
--- a/iscsi.py
+++ b/iscsi.py
@@ -110,15 +110,19 @@ class iscsi:
stdout = "/dev/tty5", stderr="/dev/tty5")
self.action("--login")
- self.iscsidStarted = True;
+ self.iscsidStarted = True
def writeKS(self):
# XXX Useful if we have auto-generated kickstart files.
return
- def write(self):
- # XXX copy config files and any files needed by mkinitrd, depends on
- # mkinitrd and open-iscsi work in progress.
- return
+ def write(self, instPath):
+ fd = os.open(instPath + INITIATOR_FILE, os.O_RDWR | os.O_CREAT)
+ os.write(fd, "InitiatorName=%s\n" %(self.initiator))
+ os.close(fd)
+
+ if not os.path.isdir(instPath + "/var/db/iscsi"):
+ iutil.mkdirChain(instPath + "/var/db/iscsi")
+ shutil.copytree("/var/db/iscsi", instPath + "/var/db/iscsi")
# vim:tw=78:ts=4:et:sw=4
diff --git a/iw/iscsi_gui.py b/iw/iscsi_gui.py
index f58ab874b..efeefc3ff 100644
--- a/iw/iscsi_gui.py
+++ b/iw/iscsi_gui.py
@@ -39,7 +39,11 @@ class iscsiWindow(InstallWindow):
self.iscsi.port = self.port.get_text()
self.iscsi.initiator = self.initiator.get_text()
+ w = self.intf.waitWindow(_("Initializing iSCSI initiator"), "")
self.iscsi.startup()
+ import time # XXX mmmm. hacktastic.
+ time.sleep(5)
+ w.pop()
return None