summaryrefslogtreecommitdiffstats
path: root/rules
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2017-09-11 20:47:38 +0200
committerHarald Hoyer <harald@redhat.com>2017-09-11 21:04:34 +0200
commit9b32afa9f241fe8febc0a754850f1e7331caf6e3 (patch)
tree4978583c2a2f1cb249352dae37ea0f5243b9cca8 /rules
parentunits: remove unnecessary Requires= and After= in system.slice (#6794) (diff)
downloadsystemd-9b32afa9f241fe8febc0a754850f1e7331caf6e3.tar.xz
systemd-9b32afa9f241fe8febc0a754850f1e7331caf6e3.zip
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.
Diffstat (limited to 'rules')
-rw-r--r--rules/80-drivers.rules2
1 files changed, 1 insertions, 1 deletions
diff --git a/rules/80-drivers.rules b/rules/80-drivers.rules
index 8551f47a4b..16fa5d8e32 100644
--- a/rules/80-drivers.rules
+++ b/rules/80-drivers.rules
@@ -1,6 +1,6 @@
# do not edit this file, it will be overwritten on update
-ACTION=="remove", GOTO="drivers_end"
+ACTION!="add", GOTO="drivers_end"
ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load $env{MODALIAS}"
SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}+="kmod load tifm_sd"