summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
authorChris Lumens <clumens@redhat.com>2009-03-05 13:49:13 -0500
committerChris Lumens <clumens@redhat.com>2009-03-05 13:49:13 -0500
commit912eed846c221cda7787a259d9ea398122f7e826 (patch)
tree3f1654a1b5594e89ba193ffb95b91963f710210b /anaconda
parent1fed7809dc4704c78a54b0f33673a1107e374b51 (diff)
downloadanaconda-912eed846c221cda7787a259d9ea398122f7e826.tar.gz
anaconda-912eed846c221cda7787a259d9ea398122f7e826.tar.xz
anaconda-912eed846c221cda7787a259d9ea398122f7e826.zip
Remove all uses of isys.cdromList, which no longer exists.
Diffstat (limited to 'anaconda')
-rwxr-xr-xanaconda10
1 files changed, 6 insertions, 4 deletions
diff --git a/anaconda b/anaconda
index 0244ad6a1..fc32dfb65 100755
--- a/anaconda
+++ b/anaconda
@@ -1016,10 +1016,12 @@ if __name__ == "__main__":
handleException(anaconda, sys.exc_info())
if anaconda.isKickstart and anaconda.id.ksdata.reboot.eject:
- isys.flushDriveDict()
- for drive in isys.cdromList():
- log.info("attempting to eject %s" % drive)
- isys.ejectCdrom(drive)
+ for drive in anaconda.id.storage.devicetree.devices.values():
+ if drive.type != "cdrom":
+ continue
+
+ log.info("attempting to eject %s" % drive.path)
+ isys.ejectCdrom(drive.path)
del anaconda.intf