source: udev/64-device-mapper.rules@ 2dd50be

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 2dd50be was 90d6419, checked in by Jim Gifford <clfs@…>, 18 years ago

Update to support Udev 104 and Device Mapper

  • Property mode set to 100644
File size: 1.0 KB
Line 
1########################################################################
2#
3# Description : 64-device-mapper.rules
4#
5# Authors : Based on Open Suse Udev Rules
6# kay.sievers@suse.de
7#
8# Adapted to : Jim Gifford
9# LFS
10#
11# Version : 00.01
12#
13# Notes : This is where you can put rules that are a part
14# of this package
15#
16########################################################################
17
18KERNEL=="device-mapper", SYMLINK+="mapper/control"
19
20KERNEL=="dm-*", ACTION=="add|change", GOTO="device_mapper_do"
21GOTO="device_mapper_end"
22
23LABEL="device_mapper_do"
24PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
25RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
26
27IMPORT{program}="vol_id --export $tempnode"
28ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
29ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
30
31LABEL="device_mapper_end"
32
Note: See TracBrowser for help on using the repository browser.