summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2002-08-19 22:05:34 +0000
committerJeremy Katz <katzj@redhat.com>2002-08-19 22:05:34 +0000
commitf7ed4973a2954907429ed629e1233b008cf63d93 (patch)
tree91d0f0a34bd1a34d9cfc41acb2fbe15d43237934 /harddrive.py
parent03529e7352cbb44a8ea7dd9a713abe7341cdf4d4 (diff)
downloadanaconda-f7ed4973a2954907429ed629e1233b008cf63d93.tar.gz
anaconda-f7ed4973a2954907429ed629e1233b008cf63d93.tar.xz
anaconda-f7ed4973a2954907429ed629e1233b008cf63d93.zip
move unmountCD base method to correct base class
don't fail if we can't unmount the source image at filesDone(); they'll reboot soon enough anyway
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/harddrive.py b/harddrive.py
index e2627f45c..ee783b688 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -92,7 +92,12 @@ class OldHardDriveInstallMethod(InstallMethod):
self.mountMedia()
def filesDone(self):
- self.umountMedia()
+ # we're trying to unmount the source image at the end. if it
+ # fails, we'll reboot soon enough anyway
+ try:
+ self.umountMedia()
+ except:
+ log("unable to unmount media")
def protectedPartitions(self):
rc = []
@@ -218,7 +223,12 @@ class HardDriveInstallMethod(InstallMethod):
self.umountMedia()
def filesDone(self):
- self.umountMedia()
+ # we're trying to unmount the source image at the end. if it
+ # fails, we'll reboot soon enough anyway
+ try:
+ self.umountMedia()
+ except:
+ log("unable to unmount media")
def protectedPartitions(self):
rc = []