chiark / gitweb /
configure.ac: version bump
[elogind.git] / rules / suse / 64-device-mapper.rules
index 15e7ddf75555bf37409f03cbc1de05be0f8f3f71..12cae35da82e01de63159ac895d33e28c93b2337 100644 (file)
@@ -1,9 +1,7 @@
 # do not edit this file, it will be overwritten on update
 
-KERNEL=="device-mapper", SYMLINK+="mapper/control"
-
 KERNEL!="dm-*", GOTO="device_mapper_end"
-ACTION!="add|change", GOTO="device_mapper_end"
+ACTION=="remove", GOTO="device_mapper_end"
 
 IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
 ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
@@ -14,7 +12,7 @@ ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}", OPTIONS+="strin
 ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
 ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
 
-IMPORT{program}="vol_id --export $tempnode"
+IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
 OPTIONS+="link_priority=-100"
 OPTIONS+="watch"
 ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90"