diff options
author | Chris Lumens <clumens@redhat.com> | 2009-03-27 15:25:48 -0400 |
---|---|---|
committer | Chris Lumens <clumens@redhat.com> | 2009-03-27 15:25:48 -0400 |
commit | 054b3ad62b8c88c86dfc873991bdc4416ec3f215 (patch) | |
tree | 32f83d5c241c402becfc4c26bdca10717a044f99 /backend.py | |
parent | 1c66c7d2f0ad20d0a3cbf9d435d2b6c5ca082636 (diff) | |
parent | b74a30461c62520e08b5972607257149901ef473 (diff) | |
download | anaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.tar.gz anaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.tar.xz anaconda-054b3ad62b8c88c86dfc873991bdc4416ec3f215.zip |
Merge commit 'origin/anaconda-storage-branch'
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/backend.py b/backend.py index e8bcf4f5c..680f05884 100644 --- a/backend.py +++ b/backend.py @@ -85,8 +85,10 @@ class AnacondaBackend: # the initrd might need iscsi-initiator-utils, and chances are # it was not installed yet the first time mkinitrd was run, as # mkinitrd does not require it. - for disk in anaconda.id.diskset.disks.keys(): - if isys.driveIsIscsi(disk): + root = anaconda.id.storage.fsset.rootDevice + disks = anaconda.id.storage.devicetree.getDevicesByType("iscsi") + for disk in disks: + if root.dependsOn(disk): has_iscsi_disk = True break @@ -156,8 +158,9 @@ class AnacondaBackend: if not anaconda.mediaDevice or not os.path.exists(installimg): return + free = anaconda.id.storage.fsset.fsFreeSpace(anaconda.rootPath) self._loopbackFile = "%s%s/rhinstall-install.img" % (anaconda.rootPath, - anaconda.id.fsset.filesystemSpace(anaconda.rootPath)[0][0]) + free[0][0]) try: win = anaconda.intf.waitWindow(_("Copying File"), |