Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 551808

Summary: sys-fs/udev-220 script execution broken
Product: Gentoo Linux Reporter: Andreas Steinmetz <ast>
Component: [OLD] Core systemAssignee: udev maintainers <udev-bugs>
Status: RESOLVED FIXED    
Severity: major CC: aou, josef64, rhill
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andreas Steinmetz 2015-06-11 16:22:39 UTC
Environment is not passed to scripts. See the following patch:

https://bugs.debian.org/cgi-bin/bugreport.cgi?msg=24;filename=sd-device-fix-device_get_properties_strv.patch;bug=787263;att=1

Furthermore, after applying this patch there is still a problem as DEVPATH
seems not to be set for some devices when an action is triggered with e.g.:

udevadm trigger --subsystem-match=usb --action=add

udev-220 breaks completely any system relying on the usb 'authorized' functionality with default for usb devices being not authorized and authorization enabled by external script as scripts are not properly called for coldplug devices.


Reproducible: Always
Comment 1 Mike Gilbert gentoo-dev 2015-06-11 18:18:14 UTC
Upstream fix: d854ba50a82f28b776c670d27156f0e9881fde8a

https://github.com/systemd/systemd/commit/d854ba50a82f28b776c670d27156f0e9881fde8a
Comment 2 Andreas Steinmetz 2015-06-11 19:34:53 UTC
I couldn't test coldplug yet. Except from that I can confirm that the upstream fix does fix script execution.
Comment 3 William Hubbs gentoo-dev 2015-06-12 03:17:51 UTC
@floppym:
I need one more patch to make the patch you indicated apply,
can you point it out?
Comment 4 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2015-06-12 08:32:23 UTC
*** Bug 551868 has been marked as a duplicate of this bug. ***
Comment 5 William Hubbs gentoo-dev 2015-06-12 14:17:07 UTC
All, udev-220-r2 is now in the tree; please let me know if it fixes this
issue.

Thanks,

William
Comment 6 Andreas Steinmetz 2015-06-12 16:27:55 UTC
Tested including coldplug on my worst affected system: r2 is ok.