diff options
author | David Lehman <dlehman@redhat.com> | 2009-02-23 12:21:24 -0600 |
---|---|---|
committer | David Lehman <dlehman@redhat.com> | 2009-02-23 12:21:24 -0600 |
commit | e1a7fe9887886044b07587b3ec2caa2ff53ebfb2 (patch) | |
tree | 447c0c31e503a74f9247d36c2947d8a483f68836 /backend.py | |
parent | 715e529c7ae2742ff57f7b9eba055e92e8077d82 (diff) | |
download | anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.tar.gz anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.tar.xz anaconda-e1a7fe9887886044b07587b3ec2caa2ff53ebfb2.zip |
Updates to make existing code use the new storage module.
Diffstat (limited to 'backend.py')
-rw-r--r-- | backend.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/backend.py b/backend.py index e8bcf4f5c..475785b12 100644 --- a/backend.py +++ b/backend.py @@ -85,8 +85,8 @@ 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): + for disk in anaconda.id.storage.disks: + if isys.driveIsIscsi(disk.path): has_iscsi_disk = True break @@ -156,8 +156,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"), |