]>
Commit | Line | Data |
---|---|---|
2452f13a TB |
1 | # do not edit this file, it will be overwritten on update |
2 | ||
3 | # assemble md arrays | |
4 | ||
5 | SUBSYSTEM!="block", GOTO="md_inc_end" | |
6 | ||
7 | # handle potential components of arrays (the ones supported by md) | |
8 | ENV{ID_FS_TYPE}=="ddf_raid_member|isw_raid_member|linux_raid_member", GOTO="md_inc" | |
9 | GOTO="md_inc_end" | |
10 | ||
11 | LABEL="md_inc" | |
12 | ||
13 | # remember you can limit what gets auto/incrementally assembled by | |
14 | # mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY' | |
15 | ACTION=="add", RUN+="/sbin/mdadm --incremental $devnode --offroot" | |
16 | ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}" | |
17 | ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="/sbin/mdadm -If $name" | |
18 | ||
19 | LABEL="md_inc_end" |