Use --offroot flag when assembling md arrays via --incrmental
This ensures that mdmon won't be killed by systemd. Signed-off-by: NeilBrown <neilb@suse.de>
This commit is contained in:
parent
787e234ddc
commit
b716f38973
|
@ -10,7 +10,7 @@ LABEL="md_inc"
|
|||
|
||||
# remember you can limit what gets auto/incrementally assembled by
|
||||
# mdadm.conf(5)'s 'AUTO' and selectively whitelist using 'ARRAY'
|
||||
ACTION=="add", RUN+="/sbin/mdadm --incremental $tempnode"
|
||||
ACTION=="add", RUN+="/sbin/mdadm --incremental $tempnode --offroot"
|
||||
ACTION=="remove", ENV{ID_PATH}=="?*", RUN+="/sbin/mdadm -If $name --path $env{ID_PATH}"
|
||||
ACTION=="remove", ENV{ID_PATH}!="?*", RUN+="/sbin/mdadm -If $name"
|
||||
|
||||
|
|
Loading…
Reference in New Issue