diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-10-14 16:18:35 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-10-14 21:32:24 +0900 |
commit | 2ce39d78b8a6c01a0750f648a615606cb186ba43 (patch) | |
tree | f2543b3e6f2abda62f7e80323d0bf993b91a75e0 /rules.d | |
parent | 4554c178bf07ded86f9f3982f26e87afd1caf0f4 (diff) | |
download | systemd-2ce39d78b8a6c01a0750f648a615606cb186ba43.tar.gz |
udev-builtin-kmod: support to run without arguments
If no module name is provided, then try to load modules based on the
device modealias.
Previously, MODALIAS property is passed as an argument, but it may
contain quotation. Hence, unfortunately the modalias may be modified
and cannot load expected modules.
Fixes #24715.
Diffstat (limited to 'rules.d')
-rw-r--r-- | rules.d/80-drivers.rules | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rules.d/80-drivers.rules b/rules.d/80-drivers.rules index 57d69b8232..4bf942f3d7 100644 --- a/rules.d/80-drivers.rules +++ b/rules.d/80-drivers.rules @@ -2,7 +2,7 @@ ACTION!="add", GOTO="drivers_end" -ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load '$env{MODALIAS}'" +ENV{MODALIAS}=="?*", RUN{builtin}+="kmod load" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="SD", RUN{builtin}+="kmod load tifm_sd" SUBSYSTEM=="tifm", ENV{TIFM_CARD_TYPE}=="MS", RUN{builtin}+="kmod load tifm_ms" SUBSYSTEM=="memstick", RUN{builtin}+="kmod load ms_block mspro_block" |