udev/iocost: invert DEVTYPE match

No functional change, just refactoring.
Addresses https://github.com/systemd/systemd/pull/23325#discussion_r1171006967.
This commit is contained in:
Yu Watanabe 2023-04-26 12:18:40 +09:00
parent c413ae18b5
commit fc73d97182

View File

@ -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}=""