c56de49a0b
find-free-devnum.fix mapfile-rebuild.fix udev-offroot Fix various issues will installation on IMSM RAID arrays, booting from those arrays, and clean shutdown when such an array is used for '/'. (bnc#752107 bnc#732294 bnc#770351) OBS-URL: https://build.opensuse.org/package/show/Base:System/mdadm?expand=0&rev=69
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"
|
|
|