chiark / gitweb /
rules: add isdn rules
[elogind.git] / rules / packages / 64-md-raid.rules
1 # do not edit this file, it will be overwritten on update
2
3 SUBSYSTEM!="block", GOTO="md_end"
4 ACTION!="add|change", GOTO="md_end"
5
6 # import data from a raid member and activate it
7 #ENV{ID_FS_TYPE}=="linux_raid_member", IMPORT{program}="/sbin/mdadm --examine --export $tempnode", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
8 # import data from a raid set
9 KERNEL!="md*", GOTO="md_end"
10
11 ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
12
13 IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
14 ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
15 ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
16
17 IMPORT{program}="vol_id --export $tempnode"
18 OPTIONS+="link_priority=100"
19 ENV{ID_FS_USAGE}=="filesystem|other|crypto", ENV{ID_FS_UUID_ENC}=="?*", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}"
20 ENV{ID_FS_USAGE}=="filesystem|other", ENV{ID_FS_LABEL_ENC}=="?*", SYMLINK+="disk/by-label/$env{ID_FS_LABEL_ENC}"
21
22 LABEL="md_end"