Skip to content

udev: set ID_PATH properties for almost all pci, usb, and platform devices#28509

Merged
bluca merged 1 commit intosystemd:mainfrom
yuwata:udev-rules-set-id-path
Jul 25, 2023
Merged

udev: set ID_PATH properties for almost all pci, usb, and platform devices#28509
bluca merged 1 commit intosystemd:mainfrom
yuwata:udev-rules-set-id-path

Conversation

@yuwata
Copy link
Member

@yuwata yuwata commented Jul 24, 2023

Before c43ff24, the following line in 60-drm.rules also sets ID_PATH for almost 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.

@yuwata yuwata added the udev label Jul 24, 2023
@yuwata yuwata marked this pull request as ready for review July 24, 2023 20:26
@github-actions github-actions bot added the please-review PR is ready for (re-)review by a maintainer label Jul 24, 2023
@systemd systemd deleted a comment from github-actions bot Jul 24, 2023
@bluca bluca added good-to-merge/waiting-for-reporter-feedback 👍 and removed please-review PR is ready for (re-)review by a maintainer labels Jul 24, 2023
@yuwata yuwata mentioned this pull request Jul 24, 2023
Copy link
Contributor

@ldv-alt ldv-alt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thanks!

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 systemd#28411.
@yuwata yuwata force-pushed the udev-rules-set-id-path branch from 20f4833 to 5efd7f7 Compare July 25, 2023 10:08
@yuwata
Copy link
Member Author

yuwata commented Jul 25, 2023

The reporter of the original issue confirmed that the fix works fine. Upgrading the green label.

@yuwata yuwata added good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed and removed good-to-merge/waiting-for-reporter-feedback 👍 labels Jul 25, 2023
@bluca bluca merged commit 6636b2b into systemd:main Jul 25, 2023
@github-actions github-actions bot removed the good-to-merge/waiting-for-ci 👍 PR is good to merge, but CI hasn't passed at time of review. Please merge if you see CI has passed label Jul 25, 2023
@yuwata yuwata deleted the udev-rules-set-id-path branch July 25, 2023 17:34
@mbiebl
Copy link
Contributor

mbiebl commented Aug 22, 2023

Should probably be backported, so setting the label

@keszybz
Copy link
Member

keszybz commented Sep 6, 2023

This is in v254, so the backport applies only to <254.

@bluca
Copy link
Member

bluca commented Sep 6, 2023

I'll take it for 253 and 252

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

udev: regression?

5 participants