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