diff options
author | Jeremy Katz <katzj@redhat.com> | 2006-08-01 15:11:37 +0000 |
---|---|---|
committer | Jeremy Katz <katzj@redhat.com> | 2006-08-01 15:11:37 +0000 |
commit | fa9d3fce24ac29514a82b7ed176a32165cef0afc (patch) | |
tree | f2012f3bc329655f9d5acddcff52186077e2b4d8 /loader2/modules.c | |
parent | bffe28d890a0d69e8f55cd33a69be24e46cbcf9c (diff) | |
download | anaconda-fa9d3fce24ac29514a82b7ed176a32165cef0afc.tar.gz anaconda-fa9d3fce24ac29514a82b7ed176a32165cef0afc.tar.xz anaconda-fa9d3fce24ac29514a82b7ed176a32165cef0afc.zip |
2006-08-01 Jeremy Katz <katzj@redhat.com>
* loader2/modules.c: We need to sleep for the disk state to be
settled, not the USB stack after loading usb-storage
Diffstat (limited to 'loader2/modules.c')
-rw-r--r-- | loader2/modules.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/loader2/modules.c b/loader2/modules.c index 8dd4eeece..0ee42bb0f 100644 --- a/loader2/modules.c +++ b/loader2/modules.c @@ -341,8 +341,13 @@ static int loadModule(const char * modName, struct extractedModule * path, * like to take forever to enumerate. try to * give it some time */ if (!strcmp(modName, "usb-storage") && !usbWasLoaded) { + int slp; usbWasLoaded = 1; - sleepUntilUsbIsStable(); + for (slp = 0; slp < 10; slp++) { + if (scsiDiskCount() > deviceCount) break; + sleep(2); + } + logMessage(DEBUGLVL, "slept %d seconds", slp * 2); } modLoaded->mods[num].firstDevNum = deviceCount; modLoaded->mods[num].lastDevNum = scsiDiskCount(); |