modprobe: remove support for renaming modules
commit30df3f6e68487c877af9ce71cb1d932480f9cddd
authorAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Tue, 16 Mar 2010 12:59:51 +0000 (16 12:59 +0000)
committerAlan Jenkins <alan-jenkins@tuffmail.co.uk>
Wed, 17 Mar 2010 10:24:57 +0000 (17 10:24 +0000)
treed3d8ace6a67f16c66b9a285aed44923825e54046
parent7a623868b280b0f8c38e0652ac9442a23c569b17
modprobe: remove support for renaming modules

This was prompted by the observation that do_softdep() doesn't implement
module renaming.

Searching for "modprobe -o" and "modprobe --name" turns up two possible
uses: creating multiple instances of the "bonding" or "dummy" network
devices.  Modern kernels provide cleaner ways to do this.  The old
way using "modprobe --name" doesn't work any more.

<https://bugzilla.redhat.com/show_bug.cgi?id=247718>
"Bonding Module fails to recognise the '-o' parameter on load"

    Comment #1 should explain how to resolve this issue.
    To create an additional bond on rhel5, please do this:

    # echo another_name > /sys/class/net/bonding_masters

    rather than using modprobe. The kernel's bonding code now uses
    sysfs for configuration of multiple bonds

<http://lkml.org/lkml/2007/6/8/381>
"2.6 kernel: Cannot make multiple dummy network interfaces"

    [solution was to use the "numdummies" module option]
doc/modprobe.sgml
modprobe.c
tests/test-modprobe-indexed/03deps.sh
tests/test-modprobe/03deps.sh