diff options
author | Tom Gundersen <teg@jklm.no> | 2011-05-09 22:15:43 +0200 |
---|---|---|
committer | Tom Gundersen <teg@jklm.no> | 2011-05-19 14:33:35 +0200 |
commit | 99d64f5789f01243903be4b32078ec38bdce75fa (patch) | |
tree | 6034a2900ef36d6040f03ac02556c76a7491cd18 /rc.conf | |
parent | 417ab8ce6c830042375da4ded4374a9f30a5387e (diff) | |
download | initscripts-99d64f5789f01243903be4b32078ec38bdce75fa.tar.xz |
udev: generate blacklist on boot
udev will read /etc/modprobe.d/*.conf and blacklist all modules that are listed as
blacklist <module>
We parse rc.conf at boot and generate such a .conf file. It cannot be written to
/etc this early, so we save it to /run. A symlink exists in /etc to get the desired
functionality.
With this patch (and an analogous one in mkinitcpio) load-modules.sh can be removed
from the udev package without loss of significant functionality.
Setting MOD_AUTOLOAD will then no longer take effect, nor will kernel parameters.
Thouhgh, kernel parameters might still affect the initramfs as the implementation
is independent.
Original-idea-by: Benjamen Richer <br@waldteufel-online.net>
Based-on-patch-by: David Reisner <d@falconindy.com>
Signed-off-by: Tom Gundersen <teg@jklm.no>
Diffstat (limited to 'rc.conf')
-rw-r--r-- | rc.conf | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -36,7 +36,7 @@ VERBOSE="3" # MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed # MODULES: Modules to load at boot-up. Prefix with a ! to blacklist. # -MOD_AUTOLOAD="yes" +MOD_AUTOLOAD="yes" # (DEPRECATED) always leave at "yes" MODULES=() # Udev settle timeout (default to 30) |