chiark / gitweb /
rules: Gentoo update
[elogind.git] / etc / udev / frugalware / 64-device-mapper.rules
1 # device mapper links hook into "online" event, when the dm table
2 # is available, while some table types must be ignored
3
4 KERNEL=="dm-*", ACTION=="add|online", GOTO="device_mapper_do"
5 GOTO="device_mapper_end"
6
7 LABEL="device_mapper_do"
8 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
9 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
10
11 IMPORT{program}="/sbin/vol_id --export $tempnode"
12 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
13 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
14
15 LABEL="device_mapper_end"