source: udev/65-dm-raid.rules@ e133476

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since e133476 was 95756c0, checked in by Jim Gifford <clfs@…>, 18 years ago

Updates with Upstream

  • Property mode set to 100644
File size: 1.2 KB
RevLine 
[95756c0]1########################################################################
2#
3# Description : 65-md-raid.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# Requirements: mdadm 2.6.2 or higher
17#
18########################################################################
19
20# md links hook into "change" events, when the array becomes available
21
22SUBSYSTEM!="block", GOTO="md_raid_end"
23KERNEL!="md[0-9]*", GOTO="md_raid_end"
24ACTION!="add|change", GOTO="md_raid_end"
25
26ATTR{md/array_state}=="|clear|inactive", GOTO="md_raid_end"
27
28IMPORT{program}="/sbin/mdadm -D --export $tempnode"
29ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
30ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
31
32IMPORT{program}="vol_id --export $tempnode"
33OPTIONS="link_priority=100"
34ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
35ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
36
37LABEL="md_raid_end"
Note: See TracBrowser for help on using the repository browser.