summaryrefslogtreecommitdiffstats
path: root/loader2/driverdisk.c
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2003-02-18 21:39:41 +0000
committerJeremy Katz <katzj@redhat.com>2003-02-18 21:39:41 +0000
commitc5269e873bdeb6f49cff67afc0d3922ebbabe1bc (patch)
tree57faa6375ff20be744d96d8329fe4ccf66fb4216 /loader2/driverdisk.c
parent517e093728d4d0135540e73fa3fe1ea89cf0cd95 (diff)
downloadanaconda-c5269e873bdeb6f49cff67afc0d3922ebbabe1bc.tar.gz
anaconda-c5269e873bdeb6f49cff67afc0d3922ebbabe1bc.tar.xz
anaconda-c5269e873bdeb6f49cff67afc0d3922ebbabe1bc.zip
add a way to skip the probe if we're going into loadDriverFromMedia from
chooseManualDevice. fixes #83422
Diffstat (limited to 'loader2/driverdisk.c')
-rw-r--r--loader2/driverdisk.c14
1 files changed, 11 insertions, 3 deletions
diff --git a/loader2/driverdisk.c b/loader2/driverdisk.c
index 3a0ca7b02..cc64a85a8 100644
--- a/loader2/driverdisk.c
+++ b/loader2/driverdisk.c
@@ -178,7 +178,8 @@ int getRemovableDevices(char *** devNames) {
*/
int loadDriverFromMedia(int class, moduleList modLoaded,
moduleDeps * modDepsPtr, moduleInfoSet modInfo,
- struct knownDevices * kd, int flags, int usecancel) {
+ struct knownDevices * kd, int flags,
+ int usecancel, int noprobe) {
char * device = NULL;
char ** devNames = NULL;
@@ -271,6 +272,13 @@ int loadDriverFromMedia(int class, moduleList modLoaded,
stage = DEV_PROBE;
case DEV_PROBE:
+ /* if they didn't specify that we should probe, then we should
+ * just fall out */
+ if (noprobe) {
+ stage = DEV_DONE;
+ break;
+ }
+
busProbe(modInfo, modLoaded, *modDepsPtr, 0, kd, flags);
if (class != CLASS_UNSPEC) {
@@ -343,7 +351,7 @@ int loadDriverDisks(int class, moduleList modLoaded,
return LOADER_OK;
rc = loadDriverFromMedia(CLASS_UNSPEC, modLoaded, modDepsPtr, modInfo,
- kd, flags, 1);
+ kd, flags, 1, 0);
if (rc == LOADER_BACK)
return LOADER_OK;
@@ -353,7 +361,7 @@ int loadDriverDisks(int class, moduleList modLoaded,
if (rc != 1)
break;
loadDriverFromMedia(CLASS_UNSPEC, modLoaded, modDepsPtr, modInfo,
- kd, flags, 0);
+ kd, flags, 0, 0);
} while (1);
return LOADER_OK;