1 # do not edit this file, it will be overwritten on update
3 KERNEL!="dm-*", GOTO="device_mapper_end"
4 ACTION=="remove", GOTO="device_mapper_end"
6 IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
7 ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
9 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}", OPTIONS+="string_escape=replace"
10 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}", OPTIONS+="string_escape=replace"
12 ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
13 ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
15 IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
16 OPTIONS+="link_priority=-100"
18 ENV{DM_TARGET_TYPES}=="*snapshot-origin*", OPTIONS+="link_priority=-90"
19 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
20 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
22 LABEL="device_mapper_end"