Skip to content

Commit 971ff12

Browse files
yuwatabluca
authored andcommitted
udev: set ID_PATH properties for all pci, usb, and platform devices
Before c43ff24, the following line in 60-drm.rules also sets ID_PATH for all pci, usb, and platform devices: === ACTION!="remove", SUBSYSTEM=="drm", SUBSYSTEMS=="pci|usb|platform", IMPORT{builtin}="path_id" === Unfortunately, some existing rules rely on the unexpected behavior. To keep the backward compatibility, let's set ID_PATH for them. Fixes #28411. (cherry picked from commit 6636b2b)
1 parent 571ada3 commit 971ff12

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

rules.d/50-udev-default.rules.in

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ SUBSYSTEM=="rtc", KERNEL=="rtc0", SYMLINK+="rtc", OPTIONS+="link_priority=-100"
1717
SUBSYSTEM=="usb", ENV{DEVTYPE}=="usb_device", IMPORT{builtin}="usb_id", IMPORT{builtin}="hwdb --subsystem=usb"
1818
ENV{MODALIAS}!="", IMPORT{builtin}="hwdb --subsystem=$env{SUBSYSTEM}"
1919

20+
# Before c43ff248f94266cfc93e300a2d3d163ed805e55b, the following line in
21+
# 60-drm.rules also sets ID_PATH for all pci, usb, and platform devices:
22+
####
23+
# ACTION!="remove", SUBSYSTEM=="drm", SUBSYSTEMS=="pci|usb|platform", IMPORT{builtin}="path_id"
24+
####
25+
# Unfortunately, some existing rules already rely on the unexpected behavior.
26+
# To keep the backward compatibility, let's set ID_PATH for them.
27+
SUBSYSTEM=="pci|usb|platform", IMPORT{builtin}="path_id"
28+
2029
ACTION!="add", GOTO="default_end"
2130

2231
SUBSYSTEM=="tty", KERNEL=="ptmx", GROUP="tty", MODE="0666"

0 commit comments

Comments
 (0)