]> git.ipfire.org Git - thirdparty/mdadm.git/blobdiff - udev-md-raid.rules
Use --offroot flag when assembling md arrays via --incrmental
[thirdparty/mdadm.git] / 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"