From: martin f krafft <madduck@madduck.net>
To: linux-hotplug@vger.kernel.org
Subject: how does udev rename an interface?
Date: Sun, 26 Dec 2004 11:28:50 +0000 [thread overview]
Message-ID: <20041226112849.GA8995@fishbowl> (raw)
[-- Attachment #1: Type: text/plain, Size: 1539 bytes --]
udev has the ability to rename network interfaces. At least on my
system, udevsend is called from /etc/hotplug.d/default. A network
device usually triggers two hotplug events, the first for the
device, and the second for the network interface. Therefore, udev
runs twice, but network interface renaming only makes sense during
the second invocation, since it only applies to network interfaces.
I have two questions about how udev handles this:
- /etc/hotplug.d/net/*.hotplug are run before udevsend is called
from /etc/hotplug.d/default. Thus, if a tool such as ifplugd
already configures the network interface with
/etc/hotplug.d/net, udev effectively cannot change the
interface name because the interface is in use.
- even if udev changes the interface name, how does it communicate
the new name to net.agent and all the other hook scripts? The
interface name is stored in $INTERFACE in the environment of the
hotplug process, and udev cannot change that environment (or can
it?).
How does udev deal with this?
Thanks,
--
martin; (greetings from the heart of the sun.)
\____ echo mailto: !#^."<*>"|tr "<*> mailto:" net@madduck
invalid/expired pgp subkeys? use subkeys.pgp.net as keyserver!
spamtraps: madduck.bogus@madduck.net
if it's there, and you can see it, it's real.
if it's not there, and you can see it, it's virtual.
if it's there, and you can't see it, it's transparent.
if it's not there, and you can't see it, you erased it.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
next reply other threads:[~2004-12-26 11:28 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-12-26 11:28 martin f krafft [this message]
2004-12-26 12:33 ` how does udev rename an interface? Kay Sievers
2004-12-26 13:30 ` martin f krafft
2004-12-26 13:57 ` 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=20041226112849.GA8995@fishbowl \
--to=madduck@madduck.net \
--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).