[systemd-devel] udev "uaccess" tag does not support "hotplug" for some devices

Tom Yan tom.ty89 at gmail.com
Wed Aug 19 12:26:21 PDT 2015


Woo it's a win of almighty grawity again! \o/

My rules works perfectly fine with the 70- prefix just as the shipped
70-uaccess.rules. Should have thought about it. Any pointer for
details about the "consumed" here btw?

On 19 August 2015 at 20:43, Mantas Mikulėnas <grawity at gmail.com> wrote:
> On Wed, Aug 19, 2015 at 3:18 PM, Robert Milasan <rmilasan at suse.cz> wrote:
>> On Wed, 19 Aug 2015 17:45:28 +0800
>> "Tom Yan" <tom.ty89 at gmail.com> wrote:
>>
>>> Hi all!
>>>
>>> So I added the following rules:
>>> [tom at localhost ~]$ grep . /etc/udev/rules.d/*
>>> /etc/udev/rules.d/uas.rules:DRIVERS=="uas", TAG+="uaccess"
>>> /etc/udev/rules.d/usb-storage.rules:DRIVERS=="usb-storage",
>>> TAG+="uaccess"
>>
>> Can you try:
>>
>> ACTION=="add|change", SUBSYSTEMS=="usb",
>> ENV{ID_USB_DRIVER}=="usb-storage", TAG+="uaccess"
>>
>> in usb-storage.rules ?
>>
>> You might wanna rename the rule to something like 90-usb-storage.rules,
>> but thats besides the point.
>
> Hmm, in fact, the "uaccess" tag is consumed by:
>
> 73-seat-late.rules:15:TAG=="uaccess", ENV{MAJOR}!="", RUN{builtin}+="uaccess"
>
> So the ordering might be very relevant.
>
> --
> Mantas Mikulėnas <grawity at gmail.com>
> _______________________________________________
> systemd-devel mailing list
> systemd-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/systemd-devel


More information about the systemd-devel mailing list