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-*", ACTION=="add|change", GOTO="device_mapper_do"
7 GOTO="device_mapper_end"
8
9 LABEL="device_mapper_do"
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 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
15 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
16
17 LABEL="device_mapper_end"