chiark / gitweb /
838b02259317d27cc2e41c156376cf40929da262
[elogind.git] / etc / udev / suse / 64-device-mapper.rules
1 # device mapper links hook into "change" events, when the dm table
2 # becomes available; some table-types must be ignored
3
4 KERNEL=="device-mapper", SYMLINK+="mapper/control"
5
6 KERNEL!="dm-*", GOTO="device_mapper_end"
7 ACTION!="add|change", GOTO="device_mapper_end"
8
9 IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
10 ENV{DM_NAME}!="?*", GOTO="device_mapper_end"
11
12 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
13 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
14
15 ENV{DM_STATE}!="ACTIVE", GOTO="device_mapper_end"
16 ENV{DM_TARGET_TYPES}=="|*snapshot*|*error*", GOTO="device_mapper_end"
17 IMPORT{program}="vol_id --export $tempnode"
18 OPTIONS="link_priority=-100"
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"