chiark / gitweb /
configure.ac: version bump
[elogind.git] / rules / suse / 64-device-mapper.rules
1 # do not edit this file, it will be overwritten on update
2
3 KERNEL!="dm-*", GOTO="device_mapper_end"
4 ACTION=="remove", GOTO="device_mapper_end"
5
6 IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
7 ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
8
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"
11
12 ENV{DM_STATE}=="SUSPENDED", GOTO="device_mapper_end"
13 ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
14
15 IMPORT{program}="/sbin/blkid -o udev -p $tempnode"
16 OPTIONS+="link_priority=-100"
17 OPTIONS+="watch"
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}"
21
22 LABEL="device_mapper_end"