summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-02-20 00:29:21 +0000
committerMike Fulbright <msf@redhat.com>2003-02-20 00:29:21 +0000
commit23ae2ae832f9644793e7d8518f6e37ec94ba4446 (patch)
tree978a81af64dd94603b190d54708c20faed9d3390 /image.py
parentb7090ae9e1c866b0e62e0ed2e416a43815c20854 (diff)
downloadanaconda-23ae2ae832f9644793e7d8518f6e37ec94ba4446.tar.gz
anaconda-23ae2ae832f9644793e7d8518f6e37ec94ba4446.tar.xz
anaconda-23ae2ae832f9644793e7d8518f6e37ec94ba4446.zip
fix for CD/DVD eject problems
Diffstat (limited to 'image.py')
-rw-r--r--image.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/image.py b/image.py
index 787ce9dc5..4d13c3afc 100644
--- a/image.py
+++ b/image.py
@@ -81,9 +81,15 @@ class CdromInstallMethod(ImageInstallMethod):
% ("/mnt/source",))
def ejectCD(self):
+ log("ejecting CD")
+
+ # make /tmp/cdrom again so cd gets ejected
+ isys.makeDevInode(self.device, "/tmp/cdrom")
+
try:
isys.ejectCdrom("/tmp/cdrom", makeDevice = 0)
- except:
+ except Exception, e:
+ log("eject failed %s" % (e,))
pass
def systemUnmounted(self):