Red Hat Bugzilla – Bug 179809
hotplug net.agent automatically re-inserts modules by virtue of ifdown iface
Last modified: 2014-03-16 22:58:02 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050923 Fedora/1.7.12-1.5.1 Mnenhy/0.7.2.0
Description of problem:
When attempting to remove the driver for an extant network card, hotplug's net.agent script automatically re-inserts the module if it is aliased to an interface in /etc/modprobe.conf
Even modules that are blacklisted (by hotplug) get loaded
This might be what is causing bug 173291
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. add a driver for your net card in modprobe.conf (eg: alias eth0 e100)
2. load the driver as normal (eg: ifup eth0)
3. bring the interface down (eg: ifdown eth0)
4. attempt to unload the driver (eg: rmmod e100)
Actual Results: the module will automatically get re-inserted and the interface will be brought back up!
Expected Results: rmmod should remove the module cleanly
I've tracked this down to hotplug's net.agent script. When a network module is removed fron the system, net.agent attempts to bring down the associated interface (ifdown $INTERFACE). But running ifdown on the interface causes modprobe to re-insert the module for that interface (before ifdown can bring it down).
To make matters worse, hotplug then detects that modprobe has inserted a new network card and runs itself with an "add" -- thereby actually bringing the interface up as you were trying to remove it entirely.
sorry, this is not related to bug 173291, ignore that.
This was fixed in initscripts-8.30-1, which was in FC5.