rules: load drivers only on "add" events
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 11 Sep 2017 18:47:38 +0000 (11:47 -0700)
committerHarald Hoyer <harald@redhat.com>
Mon, 11 Sep 2017 19:04:34 +0000 (21:04 +0200)
commit9b32afa9f241fe8febc0a754850f1e7331caf6e3
tree4978583c2a2f1cb249352dae37ea0f5243b9cca8
parentc13ee7cc8be47b7d7a87b69b2ce9d3f35d530cee
rules: load drivers only on "add" events

Previously we were loading kernel modules on all device events save
for "remove". With the introduction of KOBJ_BIND/KOBJ_UNBIND this causes
issues, as driver modules that have devices bound to their drivers get
immediately reloaded, and it appears to the user that module unloading
does not work.

Let's change the rules to only load modules on "add" events instead.
rules/80-drivers.rules