diff options
author | Erik Troan <ewt@redhat.com> | 2000-08-04 20:01:45 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2000-08-04 20:01:45 +0000 |
commit | 3f9f5f699b7d78783deb9a5369eb15871ec79808 (patch) | |
tree | b52a4304f6d27e25f89ac58f66c066cde323cdaf /image.py | |
parent | 4026b22377297ac6a062aa067724b018b9b8cffc (diff) | |
download | anaconda-3f9f5f699b7d78783deb9a5369eb15871ec79808.tar.gz anaconda-3f9f5f699b7d78783deb9a5369eb15871ec79808.tar.xz anaconda-3f9f5f699b7d78783deb9a5369eb15871ec79808.zip |
sleep after a failed mount for slow cdrom drives
Diffstat (limited to 'image.py')
-rw-r--r-- | image.py | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -5,6 +5,7 @@ from installmethod import InstallMethod import iutil import os import isys +import time import string from translate import _ from log import log @@ -62,8 +63,11 @@ class CdromInstallMethod(ImageInstallMethod): _("Please insert disc %d to continue.") % self.currentDisc) try: - isys.mount(self.device, "/mnt/source", fstype = "iso9660", - readOnly = 1) + if isys.mount(self.device, "/mnt/source", + fstype = "iso9660", readOnly = 1): + time.sleep(3) + isys.mount(self.device, "/mnt/source", + fstype = "iso9660", readOnly = 1) if os.access("/mnt/source/%s" % key, os.O_RDONLY): done = 1 |