summaryrefslogtreecommitdiffstats
path: root/anaconda
diff options
context:
space:
mode:
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