From 99d64f5789f01243903be4b32078ec38bdce75fa Mon Sep 17 00:00:00 2001 From: Tom Gundersen Date: Mon, 9 May 2011 22:15:43 +0200 Subject: udev: generate blacklist on boot udev will read /etc/modprobe.d/*.conf and blacklist all modules that are listed as blacklist 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 Based-on-patch-by: David Reisner Signed-off-by: Tom Gundersen --- rc.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rc.conf') diff --git a/rc.conf b/rc.conf index f09b413..89ea27e 100644 --- a/rc.conf +++ b/rc.conf @@ -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) -- cgit v1.2.3