]>
Commit | Line | Data |
---|---|---|
2452f13a TB |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
05ec50a5 N |
3 | # Don't process any events if anaconda is running as anaconda brings up |
4 | # raid devices manually | |
5 | ENV{ANACONDA}=="?*", GOTO="md_inc_end" | |
2452f13a TB |
6 | # assemble md arrays |
7 | ||
8 | SUBSYSTEM!="block", GOTO="md_inc_end" | |
9 | ||
10 | # handle potential components of arrays (the ones supported by md) | |
05ec50a5 N |
11 | ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="md_inc" |
12 | ||
13 | # "noiswmd" on kernel command line stops mdadm from handling | |
14 | # "isw" (aka IMSM - Intel RAID). | |
15 | # "nodmraid" on kernel command line stops mdadm from handling | |
16 | # "isw" or "ddf". | |
17 | IMPORT{cmdline}="noiswmd" | |
18 | IMPORT{cmdline}="nodmraid" | |
19 | ||
20 | ENV{nodmraid}=="?*", GOTO="md_inc_end" | |
21 | ENV{ID_FS_TYPE}=="ddf_raid_member", GOTO="md_inc" | |
22 | ENV{noiswmd}=="?*", GOTO="md_inc_end" | |
23 | ENV{ID_FS_TYPE}=="isw_raid_member", GOTO="md_inc" | |
2452f13a TB |
24 | GOTO="md_inc_end" |
25 | ||
26 | LABEL="md_inc" | |
27 | ||
28 | # remember you can limit what gets auto/incrementally assembled by | |
29 | # mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY' | |
85945e19 | 30 | ACTION=="add|change", IMPORT{program}="BINDIR/mdadm --incremental --export $devnode --offroot ${DEVLINKS}" |
25392f5f | 31 | ACTION=="add|change", ENV{MD_STARTED}=="*unsafe*", ENV{MD_FOREIGN}=="no", ENV{SYSTEMD_WANTS}+="mdadm-last-resort@$env{MD_DEVICE}.timer" |
85945e19 N |
32 | ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="BINDIR/mdadm -If $name --path $env{ID_PATH}" |
33 | ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="BINDIR/mdadm -If $name" | |
2452f13a TB |
34 | |
35 | LABEL="md_inc_end" |