linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* A rule gets applied only after running `udevadm test`
@ 2012-03-04 21:00 Rogutės Sparnuotos
  2012-03-04 23:48 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Rogutės Sparnuotos @ 2012-03-04 21:00 UTC (permalink / raw)
  To: linux-hotplug

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­d \
/sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/net/eth1

$ udevadm test --action­d \
/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?


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A rule gets applied only after running `udevadm test`
  2012-03-04 21:00 A rule gets applied only after running `udevadm test` Rogutės Sparnuotos
@ 2012-03-04 23:48 ` Kay Sievers
  2012-03-05 11:08 ` Rogutės Sparnuotos
  2012-03-05 16:38 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2012-03-04 23:48 UTC (permalink / raw)
  To: linux-hotplug

On Sun, Mar 4, 2012 at 22:00, RogutÄ—s Sparnuotos <rogutes@googlemail.com> wrote:
> 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­d \
> /sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/net/eth1
>
> $ udevadm test --action­d \
> /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?

Does:
  udevadm trigger --action­d
make it work the same way as running 'udevadm test'? Then it's more
likely an issue with your init system/bootup logic and not with udev.

Kay

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A rule gets applied only after running `udevadm test`
  2012-03-04 21:00 A rule gets applied only after running `udevadm test` Rogutės Sparnuotos
  2012-03-04 23:48 ` Kay Sievers
@ 2012-03-05 11:08 ` Rogutės Sparnuotos
  2012-03-05 16:38 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Rogutės Sparnuotos @ 2012-03-05 11:08 UTC (permalink / raw)
  To: linux-hotplug

On 2012.03.05 01:48, Kay Sievers wrote:
> On Sun, Mar 4, 2012 at 22:00, RogutÄ—s Sparnuotos<rogutes@googlemail.com>  wrote:
>> 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­d \
>> /sys/devices/pci0000:00/0000:00:1c.4/0000:04:00.0/net/eth1
>>
>> $ udevadm test --action­d \
>> /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?
>
> Does:
>    udevadm trigger --action­d
> make it work the same way as running 'udevadm test'? Then it's more
> likely an issue with your init system/bootup logic and not with udev.
>
> Kay

Thank you for the hint, you were right.

IIRC, a mere `udevadm trigger` used to work and now I see that 
Archlinux's initscripts have
   udevadm trigger --action­d --type=subsystems
   udevadm trigger --action­d --typeÞvices


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: A rule gets applied only after running `udevadm test`
  2012-03-04 21:00 A rule gets applied only after running `udevadm test` Rogutės Sparnuotos
  2012-03-04 23:48 ` Kay Sievers
  2012-03-05 11:08 ` Rogutės Sparnuotos
@ 2012-03-05 16:38 ` Kay Sievers
  2 siblings, 0 replies; 4+ messages in thread
From: Kay Sievers @ 2012-03-05 16:38 UTC (permalink / raw)
  To: linux-hotplug

On Mon, Mar 5, 2012 at 12:08, RogutÄ—s Sparnuotos <rogutes@googlemail.com> wrote:

> IIRC, a mere `udevadm trigger` used to work and now I see that Archlinux's
> initscripts have

>  udevadm trigger --action­d --typeÞvices

That type of trigger should work fine.

Kay

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-03-05 16:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-04 21:00 A rule gets applied only after running `udevadm test` Rogutės Sparnuotos
2012-03-04 23:48 ` Kay Sievers
2012-03-05 11:08 ` Rogutės Sparnuotos
2012-03-05 16:38 ` Kay Sievers

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).