summaryrefslogtreecommitdiffstats
path: root/rules.d
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-26 05:18:40 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2023-04-26 07:50:25 +0200
commitfc73d971822afaea29bdaeec054e90a4885d0cce (patch)
treee96c68faa5c09981926c01f76e0e53ba70a63392 /rules.d
parentudev/iocost: use ID_MODEL_FROM_DATABASE if exists (diff)
downloadsystemd-fc73d971822afaea29bdaeec054e90a4885d0cce.tar.xz
systemd-fc73d971822afaea29bdaeec054e90a4885d0cce.zip
udev/iocost: invert DEVTYPE match
No functional change, just refactoring. Addresses https://github.com/systemd/systemd/pull/23325#discussion_r1171006967.
Diffstat (limited to 'rules.d')
-rw-r--r--rules.d/90-iocost.rules4
1 files changed, 1 insertions, 3 deletions
diff --git a/rules.d/90-iocost.rules b/rules.d/90-iocost.rules
index 6c31cae56b..34311ded6d 100644
--- a/rules.d/90-iocost.rules
+++ b/rules.d/90-iocost.rules
@@ -8,9 +8,7 @@
# (at your option) any later version.
SUBSYSTEM!="block", GOTO="iocost_end"
-
-ENV{DEVTYPE}=="partition", GOTO="iocost_end"
-
+ENV{DEVTYPE}!="disk", GOTO="iocost_end"
ACTION=="remove", GOTO="iocost_end"
ENV{.MODEL}=""