udev: 56-hpmud.rules should not run usb_id for all USB devices out there
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
HPLIP |
Fix Released
|
Undecided
|
Unassigned | ||
hplip (Arch Linux) |
New
|
Undecided
|
Unassigned |
Bug Description
The pre-history could be seen in this issue first reported to systemd/udev: https:/
In short, the HPLIP's `56-hpmud.rules` udev rules file runs `usb_id` unconditionally for all USB devices (but only on "add" event), which 1) affects execution of follow-up rules and 2) makes the whole process yield different results on "add" and "change" events.
Ultimately, this leads to unexpectedly changing attributes and device node symlinks for USB-ATA disk devices (completely unrelated to HPLIP) after a "change" event.
Observing the rule file itself, I suspect that a GOTO to rule file end is missing:
--- a/56-hpmud.rules 2015-12-07 04:28:15.000000000 +0300
+++ b/56-hpmud.rules 2016-01-24 12:32:24.708201975 +0300
@@ -3,6 +3,7 @@
ACTION!="add", GOTO="hpmud_
SUBSYSTEM=
SUBSYSTEM=="usb", ENV{DEVTYPE}
+GOTO="
LABEL=
Hi Ivan,
Thanks for reporting this issue. We will look into this and provide the fix in future HPLIP versions.