Add handling for bind/unbind actions (#6720)
authorLennart Poettering <lennart@poettering.net>
Mon, 4 Sep 2017 13:59:17 +0000 (15:59 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Mon, 4 Sep 2017 13:59:17 +0000 (16:59 +0300)
commit9a39e1ce314d1a6f8a754f6dab040019239666a9
tree0fb3be51929aecc61c55f69985f026a5835083fc
parentf4b0b3f1889c820993e323bea5f0572f8f377418
Add handling for bind/unbind actions (#6720)

Newer kernels will emit uevents with "bind" and "unbind" actions. These
uevents will be issued when driver is bound to or unbound from a device.
"Bind" events are helpful when device requires a firmware to operate
properly, and driver is unable to create a child device before firmware
is properly loaded.

For some reason systemd validates actions and drops the ones it does not
know, instead of passing them on through as old udev did, so we need to
explicitly teach it about them.
src/libsystemd/sd-device/device-internal.h
src/libsystemd/sd-device/device-private.c