hotplug for network drivers
james.kingston_at_gmail.com
Date: 11/14/05
- Next message: Matthew Crouch: "Cool, thanks for the jokes."
- Previous message: Ivan Marsh: "Re: New Site..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 14 Nov 2005 10:21:23 -0800
We have a snapshot image of FC2 that we use as the basis for testing
and deploying our software. This image is deployed in a number of
slightly different hardware platforms. Some use tulip network drivers,
some use e100, some use e1000. Ideally, I'd be able to yank the hard
drive from the dev team's tulip-box and put it in QA's e100 box, and be
able to slap it in a deployable e1000 before being sent to the field.
This process worked fine when I was moving a slackware image around.
It also works for all other hardware in the systems, or at least we
haven't found cause to edit modprobe.conf for anything other than
network drivers.
To this end, I have removed all hardware specific parts from ifcfg-eth*
(hardware models and mac addresses), disabled kudzu (the goal is that I
don't have to plug in a kbd/video when bringing up a system), and gone
into /etc/rc.d/init.d/network and comment out the 4 lines that disabled
hotplug during the network startup process:
87: # oldhotplug=`sysctl kernel.hotplug 2>/dev/null | \
88: # awk '{ print $3 }' 2>/dev/null`
89: # sysctl -w kernel.hotplug="/bin/true" > /dev/null 2>&1
152: # sysctl -w kernel.hotplug=$oldhotplug > /dev/null 2>&1
I've removed the alias eth* lines from /etc/modprobe.conf
Also, I've commented out the following from /etc/hotplug/net.agent:
# Red Hat specific hack...
# if [ -f /etc/redhat-release ]; then
# # Don't do anything if the network is stopped
# if [ ! -f /var/lock/subsys/network ]; then
# exit 0
# fi
# fi
There has to be some other Fedoda/RH hack preventing network modules
from autoloading at boot time.
Also, how do I enable hotplug debugging? I've uncommented "DEBUG=yes;
export DEBUG" from /etc/hotplug/hotplug.functions and created
/var/log/hotplug, but I've seen nothing so far.
- Next message: Matthew Crouch: "Cool, thanks for the jokes."
- Previous message: Ivan Marsh: "Re: New Site..."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|