summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
Diffstat (limited to 'image.py')
-rw-r--r--image.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/image.py b/image.py
index 94fdfb31b..a538ccde7 100644
--- a/image.py
+++ b/image.py
@@ -80,10 +80,10 @@ class CdromInstallMethod(ImageInstallMethod):
# this isn't the exact right place, but it's close enough
target = "%s/rhinstall-stage2.img" % self.mntPoint
os.unlink(target)
- except:
+ isys.umount("/mnt/source")
+ isys.ejectCdrom(self.device)
+ except SystemError:
pass
- isys.umount("/mnt/source")
- isys.ejectCdrom(self.device)
def writeCleanupPath(self, f):
isys.makeDevInode("loop0", "/tmp/loop0")