summaryrefslogtreecommitdiffstats
path: root/image.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-08-04 20:01:45 +0000
committerErik Troan <ewt@redhat.com>2000-08-04 20:01:45 +0000
commit3f9f5f699b7d78783deb9a5369eb15871ec79808 (patch)
treeb52a4304f6d27e25f89ac58f66c066cde323cdaf /image.py
parent4026b22377297ac6a062aa067724b018b9b8cffc (diff)
downloadanaconda-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.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/image.py b/image.py
index baad5fbaf..debbd9e07 100644
--- a/image.py
+++ b/image.py
@@ -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