summaryrefslogtreecommitdiff
path: root/data/95-devkit-disks.rules
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2009-10-23 22:12:22 -0400
committerDavid Zeuthen <davidz@redhat.com>2009-10-23 22:12:22 -0400
commita95d351dcae957e36b1cd3c7c6c1a784de65dcf8 (patch)
tree4180bfce6a87bd137374bc40d07daba2da41e99a /data/95-devkit-disks.rules
parentd265ec7132e50dab067fafcf0a10d8bf3d2e235c (diff)
Various device-mapper and cryptsetup fixes
Diffstat (limited to 'data/95-devkit-disks.rules')
-rw-r--r--data/95-devkit-disks.rules6
1 files changed, 5 insertions, 1 deletions
diff --git a/data/95-devkit-disks.rules b/data/95-devkit-disks.rules
index e383e6c..f49eba9 100644
--- a/data/95-devkit-disks.rules
+++ b/data/95-devkit-disks.rules
@@ -6,6 +6,10 @@ ACTION!="add|change", GOTO="devkit_disks_end"
SUBSYSTEM!="block", GOTO="devkit_disks_end"
KERNEL=="loop*|ram*", GOTO="devkit_disks_end"
+# we only care about change events on device-mapper
+# devices - never touch the device on add events
+KERNEL=="dm-*", ACTION!="change", GOTO="devkit_disks_end"
+
##############################################################################################################
# Probe for partition tables; this really should be part of udev
@@ -33,7 +37,7 @@ LABEL="probe_parttable_end"
# by the device-mapper package
#
KERNEL!="dm-*", GOTO="device_mapper_end"
-ACTION!="add|change", GOTO="device_mapper_end"
+ACTION!="change", GOTO="device_mapper_end"
IMPORT{program}="devkit-disks-dm-export %M %m"
ENV{DKD_DM_NAME}!="?*", GOTO="device_mapper_end"