1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-02-08 05:57:26 +03:00

udev/iocost: use ID_MODEL_FROM_DATABASE if exists

To make the rule consistent with 'iocost query'.
This commit is contained in:
Yu Watanabe 2023-04-26 12:05:36 +09:00
parent ede5e271b1
commit c413ae18b5

View File

@ -13,7 +13,11 @@ ENV{DEVTYPE}=="partition", GOTO="iocost_end"
ACTION=="remove", GOTO="iocost_end"
ENV{ID_MODEL}!="", IMPORT{builtin}="hwdb 'block::name:$env{ID_MODEL}:fwrev:$env{ID_REVISION}:'"
ENV{.MODEL}=""
ENV{ID_MODEL}!="", ENV{.MODEL}="$env{ID_MODEL}"
ENV{ID_MODEL_FROM_DATABASE}!="", ENV{.MODEL}="$env{ID_MODEL_FROM_DATABASE}"
ENV{.MODEL}!="", IMPORT{builtin}="hwdb 'block::name:$env{.MODEL}:fwrev:$env{ID_REVISION}:'"
ENV{IOCOST_SOLUTIONS}!="", RUN+="iocost apply $env{DEVNAME}"