diff options
author | Erik Troan <ewt@redhat.com> | 2001-10-17 01:49:14 +0000 |
---|---|---|
committer | Erik Troan <ewt@redhat.com> | 2001-10-17 01:49:14 +0000 |
commit | b14970b2825c0e05078b32a6e8fdaf41a32a1381 (patch) | |
tree | 7e77797557cb8c8103d0e143ca5e40b36211fe67 /loader/modules.c | |
parent | a914124d9d46d796d9173bd0305caff99980dbc7 (diff) | |
download | anaconda-b14970b2825c0e05078b32a6e8fdaf41a32a1381.tar.gz anaconda-b14970b2825c0e05078b32a6e8fdaf41a32a1381.tar.xz anaconda-b14970b2825c0e05078b32a6e8fdaf41a32a1381.zip |
don't fail over missing modules
Diffstat (limited to 'loader/modules.c')
-rw-r--r-- | loader/modules.c | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/loader/modules.c b/loader/modules.c index 6ebc78f2d..57c040a8e 100644 --- a/loader/modules.c +++ b/loader/modules.c @@ -461,23 +461,26 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded, logMessage("no modules found -- aborting insertion\n"); i++; } else { + *items = '\0'; + /* if any modules weren't found, holler */ for (l = list, p = paths; *l && p; l++, p++) { if (!*p) { - logMessage("module %s not found -- aborting insertion", - *l); + if (*items) strcat(items, " "); + strcat(items, *l); i++; } } + + if (*items) logMessage("modules %s not found", items); } /* insert the modules now */ - for (l = list, p = paths; !i && *l; l++, p++) { - if (loadModule(*l, *p, modLoaded, + for (l = list, p = paths; *l; l++, p++) { + if (*p && loadModule(*l, *p, modLoaded, (argModule && !strcmp(argModule, *l)) ? args : NULL, modInfo, flags)) { logMessage("failed to insert %s\n", *p); - i++; } } @@ -495,8 +498,6 @@ static int doLoadModules(const char * origModNames, moduleList modLoaded, } } - logMessage("wrote modules.conf"); - for (p = paths; *p; p++) { unlink(*p); free(*p); |