From b67f2d68ef9267e8893c0307174b538e327d772a Mon Sep 17 00:00:00 2001 From: Bryan Kadzban Date: Wed, 27 Jan 2010 04:55:48 +0000 Subject: [PATCH] Move from /etc/modprobe.conf to /etc/modprobe.d/*.conf, since module-init-tools now complains about the former. Fixes #2560. git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@9167 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689 --- chapter01/changelog.xml | 5 +++++ chapter07/udev.xml | 9 +++++---- chapter08/kernel.xml | 30 ++++++++++++++++-------------- 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/chapter01/changelog.xml b/chapter01/changelog.xml index 764e65a81..729e0c50b 100644 --- a/chapter01/changelog.xml +++ b/chapter01/changelog.xml @@ -45,6 +45,11 @@ rules instead. Fixes #2527. + + [bryan] Use /etc/modprobe.d/*.conf files instead of a single + /etc/modprobe.conf file, since module-init-tools now warns. Fixes + #2560. + diff --git a/chapter07/udev.xml b/chapter07/udev.xml index 468a5035f..8084b9ea6 100644 --- a/chapter07/udev.xml +++ b/chapter07/udev.xml @@ -235,8 +235,9 @@ enhances the functionality of snd-pcm by making the sound cards available to OSS applications), configure modprobe to load the wrapper after Udev loads the - wrapped module. To do this, add an install line in - /etc/modprobe.conf. For example: + wrapped module. To do this, add an install line in any + /etc/modprobe.d/<filename>.conf + file. For example: install snd-pcm /sbin/modprobe -i snd-pcm ; \ /sbin/modprobe snd-pcm-oss ; true @@ -252,8 +253,8 @@ Udev loads some unwanted module - Either don't build the module, or blacklist it in - /etc/modprobe.conf file as done with the + Either don't build the module, or blacklist it in a + /etc/modprobe.d/blacklist.conf file as done with the forte module in the example below: blacklist forte diff --git a/chapter08/kernel.xml b/chapter08/kernel.xml index a2b737b8d..8cb0b89c7 100644 --- a/chapter08/kernel.xml +++ b/chapter08/kernel.xml @@ -100,10 +100,11 @@ make - If using kernel modules, an /etc/modprobe.conf - file may be needed. Information pertaining to modules and kernel - configuration is located in and in the - kernel documentation in the If using kernel modules, module configuration in /etc/modprobe.d may be required. + Information pertaining to modules and kernel configuration is + located in and in the kernel + documentation in the linux-&linux-version;/Documentation directory. Also, modprobe.conf(5) may be of interest. @@ -184,25 +185,26 @@ cp -r Documentation/* /usr/share/doc/linux-&linux-version; Configuring Linux Module Load Order - /etc/modprobe.conf + /etc/modprobe.d/usb.conf - The /etc/modprobe.conf file needs to be created - so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have been built - as modules, they will be loaded in the correct order; ehci_hcd needs to be - loaded prior to ohci_hcd and uhci_hcd in order to avoid a warning being - output at boot time. + The /etc/modprobe.d/usb.conf file needs to be + created so that if the USB drivers (ehci_hcd, ohci_hcd and uhci_hcd) have + been built as modules, they will be loaded in the correct order; ehci_hcd + needs to be loaded prior to ohci_hcd and uhci_hcd in order to avoid a + warning being output at boot time. - Create a new file /etc/modprobe.conf by running + Create a new file /etc/modprobe.d/usb.conf by running the following: -cat > /etc/modprobe.conf << "EOF" -# Begin /etc/modprobe.conf +install -v -m755 /etc/modprobe.d +cat > /etc/modprobe.d/usb.conf << "EOF" +# Begin /etc/modprobe.d/usb.conf install ohci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i ohci_hcd ; true install uhci_hcd /sbin/modprobe ehci_hcd ; /sbin/modprobe -i uhci_hcd ; true -# End /etc/modprobe.conf +# End /etc/modprobe.d/usb.conf EOF