[systemd-devel] UDEV rule not matching...why?

Mantas Mikulėnas grawity at gmail.com
Wed Oct 9 13:59:47 UTC 2024


Did you place your rules in the correct order? ENV{ID_USB_INTERFACE_NUM} is
set by usb_id in 50-udev-default.rules, so it would be available in
60-foo.rules but not in 20-foo.

On Wed, Oct 9, 2024, 16:29 Daniel Spannbauer <ds at marco.de> wrote:

> Hello,
>
>
> our own device (see attachement for udevadm info --attribute-walk)
> should have a symlink.
>
> Therefore I create the following udev rule:
>
>   SUBSYSTEM=="tty", KERNEL=="ttyACM[0-9]*",
> ENV{ID_USB_INTERFACE_NUM}=="02", ATTRS{idVendor}=="1dfb",
> ATTRS{idProduct}=="0010", SYMLINK+="2a"
>
> But a "udevadm test /sys/class/tty/ttyACM1" shows, that there is no
> match, a symlink is not created. If I remofe the "ENV" pattern, the rule
> is working.
>
> Any idea, whats wrong here?
>
> System is opensuse LEAP 15.5, RPM-VErsion of UDEV is 249.16-150400.8.25.7
>
>
> Best regards
>
>
> Daniel
>
>
> --
> Daniel Spannbauer                             Systemadministration
> marco Systemanalyse und Entwicklung GmbH      Tel   +49 8333 9233-27 Fax
> -11
> Rechbergstr. 4-6, D 87727 Babenhausen         Mobil +49 171 4033220
> https://www.marco.de                          Email ds at marco.de
> Geschäftsführer Martin Reuter, Torsten Lukas  HRB 171775 Amtsgericht
> München
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/systemd-devel/attachments/20241009/9d95181e/attachment.htm>


More information about the systemd-devel mailing list