]> git.ipfire.org Git - thirdparty/mdadm.git/commitdiff
Use --offroot flag when assembling md arrays via --incrmental
authorNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 03:54:03 +0000 (13:54 +1000)
committerNeilBrown <neilb@suse.de>
Wed, 3 Oct 2012 03:54:03 +0000 (13:54 +1000)
This ensures that mdmon won't be killed by systemd.
Signed-off-by: NeilBrown <neilb@suse.de>
udev-md-raid.rules

index da9d3c527542f98733c8f528023d6af0c1e87d42..cc7f5ef47924736aaf94c3f801be96e63cc6fe34 100644 (file)
@@ -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"