Custom properties set with ENV{WHATEVER} in parent no longer imported with IMPORT{parent} in udev rule
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
systemd (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
Focal |
Invalid
|
Undecided
|
Unassigned | ||
Groovy |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
DisplayLink uses these udev rules to start the displaylink service when a displaylink device is plugged in:
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTR{idVendor}
ACTION=="add", SUBSYSTEM=="usb", DRIVERS=="usb", ATTRS{idVendor}
The important thing to note here is that the first rule is for the device that is the parent of the device triggers the second rule, and the first rule sets ENV{DISPLAYLINK
This worked fine in 20.04.
It does not work in 21.04.
When the second rule is triggered, DISPLAYLINK_
I have confirmed via udevadm monitor that the variables are getting set on the parent.
I have confirmed via udevadm info --attribute-walk that the device triggering the second rule is the child of the device triggering the first one.
I have tried to import the variables explicitly instead of using a glob pattern and that doesn't work either.
When I modify the rule to import DEVNAME, ID_BUS, BUSNUM, DEVNUM, and ID_SERIAL directly, that works. The problem appears to be that these custom properties we are setting in the parent can't be imported in the child.
ProblemType: Bug
DistroRelease: Ubuntu 21.04
Package: udev 247.3-1ubuntu2
ProcVersionSign
Uname: Linux 5.10.0-14-generic x86_64
NonfreeKernelMo
ApportVersion: 2.20.11-0ubuntu59
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
CustomUdevRuleF
Date: Sun Feb 21 19:21:20 2021
InstallationDate: Installed on 2019-01-02 (781 days ago)
InstallationMedia: Ubuntu 18.10 "Cosmic Cuttlefish" - Release amd64 (20181017.3)
MachineType: Acer Predator G6-710
ProcKernelCmdLine: BOOT_IMAGE=
SourcePackage: systemd
UpgradeStatus: Upgraded to hirsute on 2021-02-21 (0 days ago)
dmi.bios.date: 05/18/2016
dmi.bios.release: 5.11
dmi.bios.vendor: American Megatrends Inc.
dmi.bios.version: R01-A4
dmi.board.name: Predator G6-710
dmi.board.vendor: Acer
dmi.chassis.type: 3
dmi.chassis.vendor: Acer
dmi.modalias: dmi:bvnAmerican
dmi.product.family: Acer Desktop
dmi.product.name: Predator G6-710
dmi.sys.vendor: Acer
tags: | added: rls-hh-incoming |
tags: | added: fr-1173 |
tags: | removed: rls-hh-incoming |
Changed in systemd (Ubuntu Focal): | |
status: | New → Invalid |
Changed in systemd (Ubuntu): | |
milestone: | none → hirsute-updates |
can you reproduce with debug enabled for udevd and attach the logs