]> git.ipfire.org Git - thirdparty/systemd.git/blame - rules.d/90-iocost.rules
Merge pull request #33426 from aafeijoo-suse/conf-parser-parse-size-log
[thirdparty/systemd.git] / rules.d / 90-iocost.rules
CommitLineData
6b8e9054
GNS
1# SPDX-License-Identifier: LGPL-2.1-or-later
2#
3# This file is part of systemd.
4#
5# systemd is free software; you can redistribute it and/or modify it
6# under the terms of the GNU Lesser General Public License as published by
7# the Free Software Foundation; either version 2.1 of the License, or
8# (at your option) any later version.
9
10SUBSYSTEM!="block", GOTO="iocost_end"
fc73d971 11ENV{DEVTYPE}!="disk", GOTO="iocost_end"
6b8e9054
GNS
12ACTION=="remove", GOTO="iocost_end"
13
c413ae18
YW
14ENV{.MODEL}=""
15ENV{ID_MODEL}!="", ENV{.MODEL}="$env{ID_MODEL}"
16ENV{ID_MODEL_FROM_DATABASE}!="", ENV{.MODEL}="$env{ID_MODEL_FROM_DATABASE}"
17
18ENV{.MODEL}!="", IMPORT{builtin}="hwdb 'block::name:$env{.MODEL}:fwrev:$env{ID_REVISION}:'"
6b8e9054
GNS
19
20ENV{IOCOST_SOLUTIONS}!="", RUN+="iocost apply $env{DEVNAME}"
21
22LABEL="iocost_end"