Skip to content

Commit

Permalink
Documentation: remove references to /etc/modprobe.conf
Browse files Browse the repository at this point in the history
Usage of /etc/modprobe.conf file was deprecated by module-init-tools and
is no longer parsed by new kmod tool. References to this file are
replaced in Documentation, comments and Kconfig according to the
context.

There are also some references to the old /etc/modules.conf from 2.4
kernels that are being removed.

Signed-off-by: Lucas De Marchi <[email protected]>
Acked-by: Takashi Iwai <[email protected]>
Acked-by: Mauro Carvalho Chehab <[email protected]>
Signed-off-by: Randy Dunlap <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Lucas De Marchi authored and torvalds committed Mar 30, 2012
1 parent 0960152 commit 970e248
Show file tree
Hide file tree
Showing 50 changed files with 138 additions and 160 deletions.
2 changes: 1 addition & 1 deletion Documentation/aoe/aoe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ CREATING DEVICE NODES
sh Documentation/aoe/mkshelf.sh /dev/etherd 0

There is also an autoload script that shows how to edit
/etc/modprobe.conf to ensure that the aoe module is loaded when
/etc/modprobe.d/aoe.conf to ensure that the aoe module is loaded when
necessary.

USING DEVICE NODES
Expand Down
4 changes: 2 additions & 2 deletions Documentation/aoe/autoload.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
#!/bin/sh
# set aoe to autoload by installing the
# aliases in /etc/modprobe.conf
# aliases in /etc/modprobe.d/

f=/etc/modprobe.conf
f=/etc/modprobe.d/aoe.conf

if test ! -r $f || test ! -w $f; then
echo "cannot configure $f for module autoloading" 1>&2
Expand Down
2 changes: 1 addition & 1 deletion Documentation/blockdev/floppy.txt
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ you can put:

options floppy omnibook messages

in /etc/modprobe.conf.
in a configuration file in /etc/modprobe.d/.


The floppy driver related options are:
Expand Down
2 changes: 1 addition & 1 deletion Documentation/fb/intel810.txt
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ Using the same setup as described above, load the module like this:
modprobe i810fb vram=2 xres=1024 bpp=8 hsync1=30 hsync2=55 vsync1=50 \
vsync2=85 accel=1 mtrr=1

Or just add the following to /etc/modprobe.conf
Or just add the following to a configuration file in /etc/modprobe.d/

options i810fb vram=2 xres=1024 bpp=16 hsync1=30 hsync2=55 vsync1=50 \
vsync2=85 accel=1 mtrr=1
Expand Down
2 changes: 1 addition & 1 deletion Documentation/fb/intelfb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ Using the same setup as described above, load the module like this:

modprobe intelfb mode=800x600-32@75 vram=8 accel=1 hwcursor=1

Or just add the following to /etc/modprobe.conf
Or just add the following to a configuration file in /etc/modprobe.d/

options intelfb mode=800x600-32@75 vram=8 accel=1 hwcursor=1

Expand Down
2 changes: 1 addition & 1 deletion Documentation/i2c/busses/scx200_acb
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,5 @@ If the scx200_acb driver is built into the kernel, add the following
parameter to your boot command line:
scx200_acb.base=0x810,0x820
If the scx200_acb driver is built as a module, add the following line to
the file /etc/modprobe.conf instead:
a configuration file in /etc/modprobe.d/ instead:
options scx200_acb base=0x810,0x820
2 changes: 1 addition & 1 deletion Documentation/ide/ide.txt
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ When using ide.c as a module in combination with kmod, add:

alias block-major-3 ide-probe

to /etc/modprobe.conf.
to a configuration file in /etc/modprobe.d/.

When ide.c is used as a module, you can pass command line parameters to the
driver using the "options=" keyword to insmod, while replacing any ',' with
Expand Down
16 changes: 7 additions & 9 deletions Documentation/isdn/README.gigaset
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ GigaSet 307x Device Driver
2.5.): 1=on (default), 0=off

Depending on your distribution you may want to create a separate module
configuration file /etc/modprobe.d/gigaset for these, or add them to a
custom file like /etc/modprobe.conf.local.
configuration file like /etc/modprobe.d/gigaset.conf for these.

2.2. Device nodes for user space programs
------------------------------------
Expand Down Expand Up @@ -212,8 +211,8 @@ GigaSet 307x Device Driver

options ppp_async flag_time=0

to an appropriate module configuration file, like /etc/modprobe.d/gigaset
or /etc/modprobe.conf.local.
to an appropriate module configuration file, like
/etc/modprobe.d/gigaset.conf.

Unimodem mode is needed for making some devices [e.g. SX100] work which
do not support the regular Gigaset command set. If debug output (see
Expand All @@ -237,8 +236,8 @@ GigaSet 307x Device Driver
modprobe usb_gigaset startmode=0
or by adding a line like
options usb_gigaset startmode=0
to an appropriate module configuration file, like /etc/modprobe.d/gigaset
or /etc/modprobe.conf.local.
to an appropriate module configuration file, like
/etc/modprobe.d/gigaset.conf

2.6. Call-ID (CID) mode
------------------
Expand Down Expand Up @@ -310,7 +309,7 @@ GigaSet 307x Device Driver

options isdn dialtimeout=15

to /etc/modprobe.d/gigaset, /etc/modprobe.conf.local or a similar file.
to /etc/modprobe.d/gigaset.conf or a similar file.

Problem:
The isdnlog program emits error messages or just doesn't work.
Expand Down Expand Up @@ -350,8 +349,7 @@ GigaSet 307x Device Driver
The initial value can be set using the debug parameter when loading the
module "gigaset", e.g. by adding a line
options gigaset debug=0
to your module configuration file, eg. /etc/modprobe.d/gigaset or
/etc/modprobe.conf.local.
to your module configuration file, eg. /etc/modprobe.d/gigaset.conf

Generated debugging information can be found
- as output of the command
Expand Down
2 changes: 1 addition & 1 deletion Documentation/laptops/sonypi.txt
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ Module use:
-----------

In order to automatically load the sonypi module on use, you can put those
lines in your /etc/modprobe.conf file:
lines a configuration file in /etc/modprobe.d/:

alias char-major-10-250 sonypi
options sonypi minor=250
Expand Down
8 changes: 4 additions & 4 deletions Documentation/mono.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ if [ ! -e /proc/sys/fs/binfmt_misc/register ]; then
/sbin/modprobe binfmt_misc
# Some distributions, like Fedora Core, perform
# the following command automatically when the
# binfmt_misc module is loaded into the kernel.
# binfmt_misc module is loaded into the kernel
# or during normal boot up (systemd-based systems).
# Thus, it is possible that the following line
# is not needed at all. Look at /etc/modprobe.conf
# to check whether this is applicable or not.
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
# is not needed at all.
mount -t binfmt_misc none /proc/sys/fs/binfmt_misc
fi

# Register support for .NET CLR binaries
Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/baycom.txt
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Every time a driver is inserted into the kernel, it has to know which
modems it should access at which ports. This can be done with the setbaycom
utility. If you are only using one modem, you can also configure the
driver from the insmod command line (or by means of an option line in
/etc/modprobe.conf).
/etc/modprobe.d/*.conf).

Examples:
modprobe baycom_ser_fdx mode="ser12*" iobase=0x3f8 irq=4
Expand Down
43 changes: 18 additions & 25 deletions Documentation/networking/bonding.txt
Original file line number Diff line number Diff line change
Expand Up @@ -173,9 +173,8 @@ bonding module at load time, or are specified via sysfs.

Module options may be given as command line arguments to the
insmod or modprobe command, but are usually specified in either the
/etc/modules.conf or /etc/modprobe.conf configuration file, or in a
distro-specific configuration file (some of which are detailed in the next
section).
/etc/modrobe.d/*.conf configuration files, or in a distro-specific
configuration file (some of which are detailed in the next section).

Details on bonding support for sysfs is provided in the
"Configuring Bonding Manually via Sysfs" section, below.
Expand Down Expand Up @@ -1021,7 +1020,7 @@ ifcfg-bondX files.

Because the sysconfig scripts supply the bonding module
options in the ifcfg-bondX file, it is not necessary to add them to
the system /etc/modules.conf or /etc/modprobe.conf configuration file.
the system /etc/modules.d/*.conf configuration files.

3.2 Configuration with Initscripts Support
------------------------------------------
Expand Down Expand Up @@ -1098,15 +1097,13 @@ queried targets, e.g.,
arp_ip_target=+192.168.1.1 arp_ip_target=+192.168.1.2

is the proper syntax to specify multiple targets. When specifying
options via BONDING_OPTS, it is not necessary to edit /etc/modules.conf or
/etc/modprobe.conf.
options via BONDING_OPTS, it is not necessary to edit /etc/modprobe.d/*.conf.

For even older versions of initscripts that do not support
BONDING_OPTS, it is necessary to edit /etc/modules.conf (or
/etc/modprobe.conf, depending upon your distro) to load the bonding module
with your desired options when the bond0 interface is brought up. The
following lines in /etc/modules.conf (or modprobe.conf) will load the
bonding module, and select its options:
BONDING_OPTS, it is necessary to edit /etc/modprobe.d/*.conf, depending upon
your distro) to load the bonding module with your desired options when the
bond0 interface is brought up. The following lines in /etc/modprobe.d/*.conf
will load the bonding module, and select its options:

alias bond0 bonding
options bond0 mode=balance-alb miimon=100
Expand Down Expand Up @@ -1152,7 +1149,7 @@ knowledge of bonding. One such distro is SuSE Linux Enterprise Server
version 8.

The general method for these systems is to place the bonding
module parameters into /etc/modules.conf or /etc/modprobe.conf (as
module parameters into a config file in /etc/modprobe.d/ (as
appropriate for the installed distro), then add modprobe and/or
ifenslave commands to the system's global init script. The name of
the global init script differs; for sysconfig, it is
Expand Down Expand Up @@ -1228,7 +1225,7 @@ network initialization scripts.
specify a different name for each instance (the module loading system
requires that every loaded module, even multiple instances of the same
module, have a unique name). This is accomplished by supplying multiple
sets of bonding options in /etc/modprobe.conf, for example:
sets of bonding options in /etc/modprobe.d/*.conf, for example:

alias bond0 bonding
options bond0 -o bond0 mode=balance-rr miimon=100
Expand Down Expand Up @@ -1793,8 +1790,8 @@ route additions may cause trouble.
On systems with network configuration scripts that do not
associate physical devices directly with network interface names (so
that the same physical device always has the same "ethX" name), it may
be necessary to add some special logic to either /etc/modules.conf or
/etc/modprobe.conf (depending upon which is installed on the system).
be necessary to add some special logic to config files in
/etc/modprobe.d/.

For example, given a modules.conf containing the following:

Expand All @@ -1821,20 +1818,16 @@ add above bonding e1000 tg3
bonding is loaded. This command is fully documented in the
modules.conf manual page.

On systems utilizing modprobe.conf (or modprobe.conf.local),
an equivalent problem can occur. In this case, the following can be
added to modprobe.conf (or modprobe.conf.local, as appropriate), as
follows (all on one line; it has been split here for clarity):
On systems utilizing modprobe an equivalent problem can occur.
In this case, the following can be added to config files in
/etc/modprobe.d/ as:

install bonding /sbin/modprobe tg3; /sbin/modprobe e1000;
/sbin/modprobe --ignore-install bonding

This will, when loading the bonding module, rather than
performing the normal action, instead execute the provided command.
This command loads the device drivers in the order needed, then calls
modprobe with --ignore-install to cause the normal action to then take
place. Full documentation on this can be found in the modprobe.conf
and modprobe manual pages.
This will load tg3 and e1000 modules before loading the bonding one.
Full documentation on this can be found in the modprobe.d and modprobe
manual pages.

8.3. Painfully Slow Or No Failed Link Detection By Miimon
---------------------------------------------------------
Expand Down
11 changes: 6 additions & 5 deletions Documentation/networking/dl2k.txt
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,13 @@ Now eth0 should active, you can test it by "ping" or get more information by
"ifconfig". If tested ok, continue the next step.

4. cp dl2k.ko /lib/modules/`uname -r`/kernel/drivers/net
5. Add the following line to /etc/modprobe.conf:
5. Add the following line to /etc/modprobe.d/dl2k.conf:
alias eth0 dl2k
6. Run "netconfig" or "netconf" to create configuration script ifcfg-eth0
6. Run depmod to updated module indexes.
7. Run "netconfig" or "netconf" to create configuration script ifcfg-eth0
located at /etc/sysconfig/network-scripts or create it manually.
[see - Configuration Script Sample]
7. Driver will automatically load and configure at next boot time.
8. Driver will automatically load and configure at next boot time.

Compiling the Driver
====================
Expand Down Expand Up @@ -154,8 +155,8 @@ Installing the Driver
-----------------
1. Copy dl2k.o to the network modules directory, typically
/lib/modules/2.x.x-xx/net or /lib/modules/2.x.x/kernel/drivers/net.
2. Locate the boot module configuration file, most commonly modprobe.conf
or modules.conf (for 2.4) in the /etc directory. Add the following lines:
2. Locate the boot module configuration file, most commonly in the
/etc/modprobe.d/ directory. Add the following lines:

alias ethx dl2k
options dl2k <optional parameters>
Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/e100.txt
Original file line number Diff line number Diff line change
Expand Up @@ -94,16 +94,16 @@ Additional Configurations

Configuring a network driver to load properly when the system is started is
distribution dependent. Typically, the configuration process involves adding
an alias line to /etc/modules.conf or /etc/modprobe.conf as well as editing
other system startup scripts and/or configuration files. Many popular Linux
an alias line to /etc/modprobe.d/*.conf as well as editing other system
startup scripts and/or configuration files. Many popular Linux
distributions ship with tools to make these changes for you. To learn the
proper way to configure a network device for your system, refer to your
distribution documentation. If during this process you are asked for the
driver or module name, the name for the Linux Base Driver for the Intel
PRO/100 Family of Adapters is e100.

As an example, if you install the e100 driver for two PRO/100 adapters
(eth0 and eth1), add the following to modules.conf or modprobe.conf:
(eth0 and eth1), add the following to a configuraton file in /etc/modprobe.d/

alias eth0 e100
alias eth1 e100
Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/ipv6.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
Options for the ipv6 module are supplied as parameters at load time.

Module options may be given as command line arguments to the insmod
or modprobe command, but are usually specified in either the
/etc/modules.conf or /etc/modprobe.conf configuration file, or in a
distro-specific configuration file.
or modprobe command, but are usually specified in either
/etc/modules.d/*.conf configuration files, or in a distro-specific
configuration file.

The available ipv6 module parameters are listed below. If a parameter
is not specified the default value is used.
Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/ixgb.txt
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,9 @@ Additional Configurations
-------------------------------------------------
Configuring a network driver to load properly when the system is started is
distribution dependent. Typically, the configuration process involves adding
an alias line to /etc/modprobe.conf as well as editing other system startup
scripts and/or configuration files. Many popular Linux distributions ship
with tools to make these changes for you. To learn the proper way to
an alias line to files in /etc/modprobe.d/ as well as editing other system
startup scripts and/or configuration files. Many popular Linux distributions
ship with tools to make these changes for you. To learn the proper way to
configure a network device for your system, refer to your distribution
documentation. If during this process you are asked for the driver or module
name, the name for the Linux Base Driver for the Intel 10GbE Family of
Expand Down
2 changes: 1 addition & 1 deletion Documentation/networking/ltpc.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ the driver will try to determine them itself.

If you load the driver as a module, you can pass the parameters "io=",
"irq=", and "dma=" on the command line with insmod or modprobe, or add
them as options in /etc/modprobe.conf:
them as options in a configuration file in /etc/modprobe.d/ directory:

alias lt0 ltpc # autoload the module when the interface is configured
options ltpc io=0x240 irq=9 dma=1
Expand Down
6 changes: 3 additions & 3 deletions Documentation/networking/vortex.txt
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ Module parameters
=================

There are several parameters which may be provided to the driver when
its module is loaded. These are usually placed in /etc/modprobe.conf
(/etc/modules.conf in 2.4). Example:
its module is loaded. These are usually placed in /etc/modprobe.d/*.conf
configuretion files. Example:

options 3c59x debug=3 rx_copybreak=300

Expand Down Expand Up @@ -425,7 +425,7 @@ steps you should take:
1) Increase the debug level. Usually this is done via:

a) modprobe driver debug=7
b) In /etc/modprobe.conf (or /etc/modules.conf for 2.4):
b) In /etc/modprobe.d/driver.conf:
options driver debug=7

2) Recreate the problem with the higher debug level,
Expand Down
13 changes: 6 additions & 7 deletions Documentation/parport.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,17 @@ addresses should not be specified for supported PCI cards since they
are automatically detected.


KMod
----
modprobe
--------

If you use kmod, you will find it useful to edit /etc/modprobe.conf.
Here is an example of the lines that need to be added:
If you use modprobe , you will find it useful to add lines as below to a
configuration file in /etc/modprobe.d/ directory:.

alias parport_lowlevel parport_pc
options parport_pc io=0x378,0x278 irq=7,auto

KMod will then automatically load parport_pc (with the options
"io=0x378,0x278 irq=7,auto") whenever a parallel port device driver
(such as lp) is loaded.
modprobe will load parport_pc (with the options "io=0x378,0x278 irq=7,auto")
whenever a parallel port device driver (such as lp) is loaded.

Note that these are example lines only! You shouldn't in general need
to specify any options to parport_pc in order to be able to use a
Expand Down
Loading

0 comments on commit 970e248

Please sign in to comment.