From: rich turner <rich@storix.com>
To: linux-hotplug@vger.kernel.org
Subject: general hotplug/udev questions
Date: Thu, 18 Aug 2005 19:53:34 +0000 [thread overview]
Message-ID: <1124394814.4483.46.camel@rich> (raw)
i am looking at the way suse 9.3 is using hotplug and udev to load
network device modules, and want to know if this is specific to suse or
if hotplug/udev is using this method and will be used by other
distributions going forward.
keep in mind that i am not using the initrd (which is initramfs) that
suse distributes, or their mkinitrd to create it. i have a process that
creates an initrd (old-school, not initramfs), which works on any
distribution (2.4 and 2.6 kernels).
my problem is that my network modules are not being loaded when the
system boots. on all previous distibutions it was a matter of adding the
network devices as an alias in /etc/modprobe.conf and then the network
startup scripts would handle loading the module when the device was
brought up:
alias eth0 sis900
what i am seeing on suse 9.3 is that in their initrd (initramfs) they
are using klibc and are echoing /sbin/hotplug.sh
to /proc/sys/kernel/hotplug. this is the contents of /sbin/hotplug.sh:
#!/bin/sh
#
# /sbin/hotplug.sh
# $Id: hotplug.sh,v 1.1 2005/01/20 10:38:11 hare Exp $
#
# Simple hotplug script for initramfs
# Records all events if requested and starts up udev
#
# Records all events if requested
if [ -d /events -a -x /sbin/hotplugeventrecorder ] ; then
/sbin/hotplugeventrecorder $1 2>/dev/null
fi
AGENT=/sbin/udev
if [ -x $AGENT ]; then
exec $AGENT $@
echo "couldn't exec $AGENT"
fi
exit 1
they will then copy all entries that are created in /events
to /lib/klibc/events and mount it up using tmpfs so they can access them
when exiting the initrd.
then within their boot.coldplug init script, they take those events and
load the modules.
because my linuxrc does not create events or mount /lib/klibc/events in
the initrd, then boot.coldplug does not load the network modules.
i realize i can load the network modules in the initrd and everything
would be golden, but that is not the purpose of the initrd. in my
opinion we already do to much in the initrd because the distributions
dont do enough (or do it correctly) in their init scripts. we try to
keep the initrd's purpose to do only enough to mount the root
filesystem.
it is important that our process remain generic across all distributions
because we need to support many other distributions.
does anyone have an opinion as to whether suse's current method will
become the standard?
it appears that udevstart.static creates events but /sbin/udevstart does
not. why is that?
is /sbin/hotplugevenrecorder an executable being distributed by suse or
is it something that will be coming in the maintained udev?
even though we use udevstart in the initrd, is there any real purpose to
echoing something (/sbin/udev, /sbin/udevsend, /bin/true) out
to /proc/sys/kernel/hotplug while in the initrd?
it is my experience that udev only handles devices that you would expect
to find in /dev. how could it have any effect on network interfaces? is
this a product of hotplug or udev?
i apologize for the long message, but i do appreciate any feedback.
rich turner
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2005-08-18 19:53 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-08-18 19:53 rich turner [this message]
2005-08-18 20:14 ` general hotplug/udev questions Greg KH
2005-08-18 20:49 ` Kay Sievers
2005-08-19 9:09 ` Alexander E. Patrakov
2005-08-19 11:10 ` Marco d'Itri
2005-08-19 16:23 ` Greg KH
2005-08-19 16:33 ` Alexander E. Patrakov
2005-08-19 16:35 ` Kay Sievers
2005-08-19 16:38 ` Marco d'Itri
2005-08-19 16:47 ` Greg KH
2005-08-19 16:56 ` Kay Sievers
2005-08-19 17:11 ` Greg KH
2005-08-19 17:18 ` Kay Sievers
2005-08-21 7:16 ` Alexander E. Patrakov
2005-08-24 19:43 ` Kay Sievers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1124394814.4483.46.camel@rich \
--to=rich@storix.com \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).