chiark / gitweb /
update SUSE rules
[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 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
11 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
12
13 IMPORT{program}="vol_id --export $tempnode"
14 OPTIONS="link_priority=-100"
15 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
16 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
17
18 LABEL="device_mapper_end"