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

Mantas Mikulėnas grawity at gmail.com
Wed Aug 19 05:43:16 PDT 2015


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>


More information about the systemd-devel mailing list