chiark / gitweb /
rules: fix cciss rule
[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 # skip snapshot and error tables
10 IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
11 ENV{DM_STATE}!="ACTIVE", GOTO="device_mapper_end"
12 ENV{DM_TARGET_TYPES}=="|*snapshot*|*error*", GOTO="device_mapper_end"
13
14 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
15 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
16
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"