summaryrefslogtreecommitdiffstats
path: root/partitioning.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 /partitioning.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 'partitioning.py')
-rw-r--r--partitioning.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/partitioning.py b/partitioning.py
index 02351ff3a..0a6d5e28e 100644
--- a/partitioning.py
+++ b/partitioning.py
@@ -40,9 +40,16 @@ from rhpl.translate import _
def partitionObjectsInitialize(anaconda):
if anaconda.dir == DISPATCH_BACK:
anaconda.id.diskset.closeDevices()
+ anaconda.id.iscsi.shutdown()
isys.flushDriveDict()
return
+ # clean slate about drives
+ isys.flushDriveDict()
+
+ # ensure iscsi devs are up
+ anaconda.id.iscsi.startup(anaconda.intf)
+
# read in drive info
anaconda.id.diskset.refreshDevices(anaconda.intf, anaconda.id.partitions.reinitializeDisks,
anaconda.id.partitions.zeroMbr, anaconda.id.partitions.autoClearPartDrives)
@@ -52,6 +59,9 @@ def partitionObjectsInitialize(anaconda):
anaconda.id.partitions.setFromDisk(anaconda.id.diskset)
anaconda.id.partitions.setProtected(anaconda.dispatch)
+ # make sure we have all the device nodes we'll want
+ iutil.makeDriveDeviceNodes()
+
def partitioningComplete(anaconda):
if anaconda.dir == DISPATCH_BACK and anaconda.id.fsset.isActive():
rc = anaconda.intf.messageWindow(_("Installation cannot continue."),