summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJerry <Jerry@f9.vonau.ca>2009-11-24 19:06:21 -0600
committerChris Lumens <clumens@redhat.com>2009-12-16 16:40:40 -0500
commitdf49cb86b0466274ea058426cc1d2e6aa1d78447 (patch)
tree09c40b03eef6fdabe488b1fab57092dc9e61e83b
parent98504bcaad593f3271a76f1591120310c781049d (diff)
downloadanaconda-df49cb86b0466274ea058426cc1d2e6aa1d78447.tar.gz
anaconda-df49cb86b0466274ea058426cc1d2e6aa1d78447.tar.xz
anaconda-df49cb86b0466274ea058426cc1d2e6aa1d78447.zip
Make sure /mnt/stage2 is mounted before trying to unmount.
-rw-r--r--backend.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/backend.py b/backend.py
index 9d26a25ea..f87ff6554 100644
--- a/backend.py
+++ b/backend.py
@@ -183,7 +183,8 @@ class AnacondaBackend:
return 1
isys.lochangefd("/dev/loop0", self._loopbackFile)
- isys.umount("/mnt/stage2")
+ if os.path.ismount("/mnt/stage2"):
+ isys.umount("/mnt/stage2")
def removeInstallImage(self):
if self._loopbackFile: