chiark / gitweb /
9555e9799f2c0efe19daed7b0d6f8f9d877ef9cc
[elogind.git] / etc / udev / suse / 64-device-mapper.rules
1 KERNEL=="device-mapper", SYMLINK+="mapper/control"
2
3 KERNEL!="dm-*", GOTO="device_mapper_end"
4 ACTION!="add|change", 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}"
10 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
11
12 ENV{DM_STATE}!="ACTIVE", GOTO="device_mapper_end"
13 ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
14 IMPORT{program}="vol_id --export $tempnode"
15 OPTIONS="link_priority=-100"
16 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
17 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
18
19 LABEL="device_mapper_end"