summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorMatt Wilson <msw@redhat.com>2000-07-12 17:08:47 +0000
committerMatt Wilson <msw@redhat.com>2000-07-12 17:08:47 +0000
commita3d2d3b08ea51c5f3dbd69fd7967f41b31e13671 (patch)
treeb76fd9a031ff4c9995f1118c3811802d5e3e911d /image.py
parent6d2eefdf42db61bdea893978511c1d150d66df3c (diff)
downloadanaconda-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.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")