From: "Rogutės Sparnuotos" <rogutes@googlemail.com>
To: linux-hotplug@vger.kernel.org
Subject: A rule gets applied only after running `udevadm test`
Date: Sun, 04 Mar 2012 21:00:29 +0000 [thread overview]
Message-ID: <jj0l5p$kl$1@dough.gmane.org> (raw)
I have 2 custom rules to rename network interfaces:
SUBSYSTEM="net", ACTION="add", ATTR{address}="00:1f:d0:5a:7d:48",
NAME="eth_int"
SUBSYSTEM="net", ACTION="add", ATTR{address}="00:50:22:e9:7d:09",
NAME="eth1"
But they aren't triggered on boot (although another rule from the same
file is applied). Now if I run
$ udevadm test --actiond \
/sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/net/eth1
$ udevadm test --actiond \
/sys/devices/pci0000:00/0000:00:1e.0/0000:05:01.0/net/eth0
the interfaces get renamed. What could I do to make these rules work on
boot? Could this be an udev bug caused by a module-less kernel?
next reply other threads:[~2012-03-04 21:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-03-04 21:00 Rogutės Sparnuotos [this message]
2012-03-04 23:48 ` A rule gets applied only after running `udevadm test` Kay Sievers
2012-03-05 11:08 ` Rogutės Sparnuotos
2012-03-05 16:38 ` 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='jj0l5p$kl$1@dough.gmane.org' \
--to=rogutes@googlemail.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).