A rule gets applied only after running `udevadm test`

Rogutės Sparnuotos <[email protected]>
Newsgroups gmane.linux.hotplug.devel
Message-ID <[email protected]>
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 --action=add \
/sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/net/eth1

$ udevadm test --action=add \
/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?

--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.