Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 551808 - sys-fs/udev-220 script execution broken
Summary: sys-fs/udev-220 script execution broken
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal major (vote)
Assignee: udev maintainers
URL:
Whiteboard:
Keywords:
: 551868 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-06-11 16:22 UTC by Andreas Steinmetz
Modified: 2018-10-26 11:58 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.