diff options
author | Jeremy Katz <katzj@redhat.com> | 2002-10-07 21:46:45 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2002-10-07 21:46:45 +0000 |
commit | c5a0a9b8a716679ed9aca0870eb23790dec4e329 (patch) | |
tree | 2abb29a0ee21650cc4ef6a91e8f1a2369830b311 /image.py | |
parent | a4aef484430a0fee4898f979ae4714e7650046c1 (diff) | |
download | anaconda-c5a0a9b8a716679ed9aca0870eb23790dec4e329.tar.gz anaconda-c5a0a9b8a716679ed9aca0870eb23790dec4e329.tar.xz anaconda-c5a0a9b8a716679ed9aca0870eb23790dec4e329.zip |
# if self.currentDisc is empty, then we shouldn't have anything
# mounted. double-check by trying to unmount, but we don't want
# to get into a loop of trying to unmount forever. if
# self.currentDisc is set, then it should still be mounted and
# we want to loop until it unmounts successfully
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -127,7 +127,19 @@ class CdromInstallMethod(ImageInstallMethod): self.timestamp = timestamp needed = h[1000002] - self.unmountCD() + + # if self.currentDisc is empty, then we shouldn't have anything + # mounted. double-check by trying to unmount, but we don't want + # to get into a loop of trying to unmount forever. if + # self.currentDisc is set, then it should still be mounted and + # we want to loop until it unmounts successfully + if not self.currentDisc: + try: + isys.umount("/mnt/source") + except: + pass + else: + self.unmountCD() done = 0 |