[dm-devel] [PATCH 24/31] kpartx.rules: respect DM_UDEV_LOW_PRIORITY_FLAG
Martin Wilck
mwilck at suse.com
Sat Sep 2 22:38:53 UTC 2017
kpartx.rules increased link priority unconditionally, but for
explicitly marked low prio devices that shouldn't be done.
Fix that. Also, use "+=" for OPTIONS, as most other rules do.
Signed-off-by: Martin Wilck <mwilck at suse.com>
---
kpartx/kpartx.rules | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/kpartx/kpartx.rules b/kpartx/kpartx.rules
index ea34e449..efd21a29 100644
--- a/kpartx/kpartx.rules
+++ b/kpartx/kpartx.rules
@@ -12,7 +12,7 @@ ENV{DM_UUID}!="?*", GOTO="kpartx_end"
# with 0 dependencies
IMPORT{program}=="kpartx_id %M %m $env{DM_UUID}"
-OPTIONS="link_priority=50"
+ENV{DM_UDEV_LOW_PRIORITY_FLAG}!="1", OPTIONS+="link_priority=50"
ENV{DM_UUID}=="?*", ENV{DM_TYPE}=="?*" \
SYMLINK+="disk/by-id/$env{DM_TYPE}-$env{DM_NAME}"
--
2.14.0
More information about the dm-devel
mailing list