]> git.ipfire.org Git - thirdparty/mdadm.git/blame - udev-md-raid-assembly.rules
in_initrd: fix gcc compiler error
[thirdparty/mdadm.git] / udev-md-raid-assembly.rules
CommitLineData
2452f13a
TB
1# do not edit this file, it will be overwritten on update
2
3# assemble md arrays
4
5SUBSYSTEM!="block", GOTO="md_inc_end"
6
7# handle potential components of arrays (the ones supported by md)
8ENV{ID_FS_TYPE}=="ddf_raid_member|isw_raid_member|linux_raid_member", GOTO="md_inc"
9GOTO="md_inc_end"
10
11LABEL="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'
15ACTION=="add", RUN+="/sbin/mdadm --incremental $devnode --offroot"
16ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
17ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="/sbin/mdadm -If $name"
18
19LABEL="md_inc_end"