forked from pool/mdadm
19 lines
712 B
Plaintext
19 lines
712 B
Plaintext
|
Use --offroot flag when assembling md arrays.
|
||
|
|
||
|
This ensures that mdmon won't be killed by systemd.
|
||
|
---
|
||
|
udev-md-raid.rules | 2 +-
|
||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||
|
|
||
|
--- mdadm-3.2.5.orig/udev-md-raid.rules
|
||
|
+++ mdadm-3.2.5/udev-md-raid.rules
|
||
|
@@ -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"
|
||
|
|