I am attaching an updated and cleaned-up file. Please add it ASAP to the package because many users have complained about this (usually to me) in the last year.
-- ciao, Marco
KERNEL!="dm-*", GOTO="device_mapper_end" ACTION!="add|change", GOTO="device_mapper_end" IMPORT{program}="/sbin/dmsetup export -j $major -m $minor" ENV{DM_NAME}!="?*", GOTO="device_mapper_end" # these are temporary devices created by cryptsetup, we want to ignore them # and also hide them from HAL ENV{DM_NAME}=="temporary-cryptsetup-*", OPTIONS="ignore_device" SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}" ENV{DM_UUID}=="?*", \ SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}" ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end" # should become ENV{DM_TARGET_TYPES}=="|*error*" after #486780 is fixed ENV{DM_TARGET_TYPES}=="*error*", GOTO="device_mapper_end" IMPORT{program}="vol_id --export $tempnode" OPTIONS+="link_priority=-100" ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90" ENV{ID_FS_UUID_ENC}=="?*", ENV{ID_FS_USAGE}=="filesystem|other|crypto", \ SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" ENV{ID_FS_LABEL_ENC}=="?*", ENV{ID_FS_USAGE}=="filesystem|other", \ SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}" LABEL="device_mapper_end"
signature.asc
Description: Digital signature