summaryrefslogtreecommitdiffstats
path: root/zfcp.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-06-21 04:00:44 +0000
committerJeremy Katz <katzj@redhat.com>2006-06-21 04:00:44 +0000
commit62255d5b2aa3f924007eb7173db944b6bd0f7459 (patch)
tree8f9d76c04236e7eb4a678039c3502abe7c8e95cb /zfcp.py
parent58b0dbfc664c3bdfec3bf300f58c94ca9e86aca0 (diff)
downloadanaconda-62255d5b2aa3f924007eb7173db944b6bd0f7459.tar.gz
anaconda-62255d5b2aa3f924007eb7173db944b6bd0f7459.tar.xz
anaconda-62255d5b2aa3f924007eb7173db944b6bd0f7459.zip
2006-06-21 Jeremy Katz <katzj@redhat.com>
* iw/iscsi_gui.py (iscsiWindow.getNext): Don't need to do the startup here now. * isys/isys.py (compareDrives): Sort xvd devices first since they're the "bootable" ones for Xen (driveIsIscsi): Determine if a drive is iscsi or not. Kind of ugly. * zfcp.py (ZFCP.write): Copy zfcp.conf here. * yuminstall.py (YumBackend.doPreInstall): Write out network, zfcp and iscsi info prior to the install starting. * partitioning.py (partitionObjectsInitialize): Flush drive dict on initialization, set up iscsi devices here, make device nodes for drives * kickstart.py (AnacondaKSHandlers.doIscsi): Initial iscsi kickstart support. This syntax *will* change * iscsi.py (iscsi.action): Set nodes to start up automatically on boot in the db (iscsi.startup): Give a popup while we're waiting on iscsi devs to initialize (iscsi.write): Write out iscsi config * fsset.py: Add various bits so that we can set that a device should be marked as _netdev in the fstab and use it appropriately for iscsi.
Diffstat (limited to 'zfcp.py')
-rw-r--r--zfcp.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/zfcp.py b/zfcp.py
index bf05cb797..bd1dea8be 100644
--- a/zfcp.py
+++ b/zfcp.py
@@ -17,6 +17,7 @@ import string
import os
import iutil
import isys
+import shutil
from rhpl.translate import _, N_
@@ -234,6 +235,10 @@ class ZFCP:
# FIXME KH not implemented yet
return
+ def write(self, instPath):
+ if os.path.exists("/tmp/zfcp.conf"):
+ shutil.copyfile("/tmp/zfcp.conf", instPath + "/etc/zfcp.conf")
+
def readConfig(self):
self.fcpdevices = []
try: