diff options
author | Matt Wilson <msw@redhat.com> | 2000-07-12 17:08:47 +0000 |
---|---|---|
committer | Matt Wilson <msw@redhat.com> | 2000-07-12 17:08:47 +0000 |
commit | a3d2d3b08ea51c5f3dbd69fd7967f41b31e13671 (patch) | |
tree | b76fd9a031ff4c9995f1118c3811802d5e3e911d /image.py | |
parent | 6d2eefdf42db61bdea893978511c1d150d66df3c (diff) | |
download | anaconda-a3d2d3b08ea51c5f3dbd69fd7967f41b31e13671.tar.gz anaconda-a3d2d3b08ea51c5f3dbd69fd7967f41b31e13671.tar.xz anaconda-a3d2d3b08ea51c5f3dbd69fd7967f41b31e13671.zip |
don't fall over if we're still mounted
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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") |