diff options
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"), |