lvm2/10-dm.rules-Reset-state-variable-for-spurious-events.patch

19 lines
729 B
Diff
Raw Normal View History

References: bsc#932300
---
2016-05-11 05:42:15 +02:00
Index: LVM2.2.02.152/udev/10-dm.rules.in
===================================================================
2016-05-11 05:42:15 +02:00
--- LVM2.2.02.152.orig/udev/10-dm.rules.in
+++ LVM2.2.02.152/udev/10-dm.rules.in
@@ -138,6 +138,11 @@ ENV{DM_UDEV_RULES_VSN}="2"
ENV{DM_UDEV_DISABLE_DM_RULES_FLAG}!="1", ENV{DM_NAME}=="?*", SYMLINK+="(DM_DIR)/$env{DM_NAME}"
+# Reset variables for spurious events
+ENV{DM_UDEV_DISABLE_SUBSYSTEM_RULES_FLAG}=""
+ENV{DM_UDEV_DISABLE_DISK_RULES_FLAG}=""
+ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=""
+
# Avoid processing and scanning a DM device in the other (foreign)
# rules if it is in suspended state. However, we still keep 'disk'
# and 'DM subsystem' related rules enabled in this case.