Changeset 95756c0 for udev/64-device-mapper.rules
- Timestamp:
- May 24, 2007, 10:28:56 AM (17 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- 850f2ea6
- Parents:
- 2b92d03
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
udev/64-device-mapper.rules
r2b92d03 r95756c0 14 14 # of this package 15 15 # 16 # Requirements: mdadm 2.6.2 or higher 17 # 16 18 ######################################################################## 17 19 18 KERNEL=="device-mapper", 20 KERNEL=="device-mapper", SYMLINK+="mapper/control" 19 21 20 KERNEL =="dm-*", ACTION=="add|change", GOTO="device_mapper_do"21 GOTO="device_mapper_end"22 KERNEL!="dm-*", GOTO="device_mapper_end" 23 ACTION!="add|change", GOTO="device_mapper_end" 22 24 23 LABEL="device_mapper_do" 24 PROGRAM!="/sbin/dmsetup status -j %M -m %m", GOTO="device_mapper_end" 25 RESULT=="|*snapshot*|*error*", GOTO="device_mapper_end" 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" 28 ENV{DM_TARGET_TYPES}=="|*snapshot*|*error*", GOTO="device_mapper_end" 29 30 SYMLINK+="disk/by-id/dm-name-$env{DM_NAME}" 31 ENV{DM_UUID}=="?*", SYMLINK+="disk/by-id/dm-uuid-$env{DM_UUID}" 26 32 27 33 IMPORT{program}="vol_id --export $tempnode" 28 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID}" 29 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_SAFE}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_SAFE}" 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}" 30 37 31 38 LABEL="device_mapper_end" 32
Note: See TracChangeset
for help on using the changeset viewer.