clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since 0fb548d was bda8cfb, checked in by Jim Gifford <clfs@…>, 18 years ago |
r5455@server: jim | 2006-08-31 09:17:48 -0700
Updated for Udev 098
|
-
Property mode
set to
100644
|
File size:
1.0 KB
|
Line | |
---|
1 | ########################################################################
|
---|
2 | #
|
---|
3 | # Description : 70-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 :
|
---|
14 | #
|
---|
15 | ########################################################################
|
---|
16 |
|
---|
17 | # device mapper links hook into "online" event, when the dm table
|
---|
18 | # is available, while some table types must be ignored
|
---|
19 |
|
---|
20 | KERNEL=="device-mapper", SYMLINK+="mapper/control"
|
---|
21 |
|
---|
22 | KERNEL=="dm-*", ACTION=="add|change", GOTO="device_mapper_do"
|
---|
23 | GOTO="device_mapper_end"
|
---|
24 |
|
---|
25 | LABEL="device_mapper_do"
|
---|
26 | PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end"
|
---|
27 | RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end"
|
---|
28 |
|
---|
29 | IMPORT{program}="vol_id --export $tempnode"
|
---|
30 | ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}"
|
---|
31 | ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}"
|
---|
32 |
|
---|
33 | LABEL="device_mapper_end"
|
---|
34 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.