+int mlModuleInBlacklist(const char * modName) {
+ int i;
+
+ for (i=0; i < cmdline_argc; i++) {
+ if (!strncasecmp(cmdline_argv[i], "blacklist=", 10))
+ if (!strcmp(cmdline_argv[i] + 10, modName))
+ return 1;
+ }
+
+ return 0;
+}
+
static struct loadedModuleInfo * getLoadedModuleInfo(moduleList modLoaded,
const char * modName) {
int i = 0;
@@ -270,7 +286,7 @@ static int loadModule(const char * modName, struct extractedModule * path,
static int usbWasLoaded = 0;
/* don't need to load a module that's already loaded */
- if (mlModuleInList(modName, modLoaded))
+ if (mlModuleInList(modName, modLoaded) || mlModuleInBlacklist(modName))
return 0;
- if (mlModuleInList(start, modLoaded)) {
+ if (mlModuleInList(start, modLoaded) || mlModuleInBlacklist(start)) {
/* already loaded, we don't need to load it again */
start = next;
continue;
--
1.7.4
_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list