Red Hat Bugzilla – Bug 175315
RFE: don't try loading a given module more than once
Last modified: 2014-03-16 22:57:06 EDT
Description of problem:
While trying to isolate a problem, I modified rc.sysinit to print the name of
the module which is being loaded by load_module() and noticed that duplicates
aren't screened out.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Have load_module() print the name of the module before attempting to load it.
You may end up getting duplicates (if you have multiple on-board USB
controllers, for example).
Not to see that, maybe a negligibly faster bootup.
(Ab)using $blacklist by adding names of modules to it as we attempt to load it
appears to do the trick:
@@ -197,6 +197,7 @@
for module in $blacklist ; do
[ "$1" = "$module" ] && return
+ blacklist="$blacklist $1"
modprobe $1 >/dev/null 2>&1
This is going to get moved to udev shortly, actually.
load_module is dead. Hooray.