clfs-1.2
clfs-2.1
clfs-3.0.0-systemd
clfs-3.0.0-sysvinit
systemd
sysvinit
Last change
on this file since b1babef was 4dca606, checked in by Jim Gifford <clfs@…>, 18 years ago |
Updates from Upstream
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[90d6419] | 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 | #
|
---|
[95756c0] | 16 | # Requirements: mdadm 2.6.2 or higher
|
---|
| 17 | #
|
---|
[90d6419] | 18 | ########################################################################
|
---|
| 19 |
|
---|
[95756c0] | 20 | KERNEL=="device-mapper", SYMLINK+="mapper/control"
|
---|
| 21 |
|
---|
| 22 | KERNEL!="dm-*", GOTO="device_mapper_end"
|
---|
| 23 | ACTION!="add|change", GOTO="device_mapper_end"
|
---|
[90d6419] | 24 |
|
---|
[95756c0] | 25 | # skip snapshot and error tables
|
---|
| 26 | IMPORT{program}="/sbin/dmsetup export -j%M -m%m"
|
---|
| 27 | ENV{DM_STATE}!="ACTIVE", GOTO="device_mapper_end"
|
---|
[4dca606] | 28 | ENV{DM_TARGET_TYPES}=="|*error*", GOTO="device_mapper_end"
|
---|
[90d6419] | 29 |
|
---|
[95756c0] | 30 | SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}"
|
---|
| 31 | ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}"
|
---|
[90d6419] | 32 |
|
---|
| 33 | IMPORT{program}="vol_id --export $tempnode"
|
---|
[95756c0] | 34 | OPTIONS="link_priority=-100"
|
---|
| 35 | ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
|
---|
| 36 | ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
|
---|
[90d6419] | 37 |
|
---|
| 38 | LABEL="device_mapper_end"
|
---|
Note:
See
TracBrowser
for help on using the repository browser.