summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2010-04-13 14:38:44 -0400
committerDoug Ledford <dledford@redhat.com>2010-04-13 14:38:44 -0400
commit506c331a6030531fe647c7a654bd87ae32373543 (patch)
treeba8ce37df85d9a2b86920e376df9bade399376be
parent154c29c26b608d2b7222b4df88f3809efa3f270f (diff)
downloadmdadm-506c331a6030531fe647c7a654bd87ae32373543.tar.gz
mdadm-506c331a6030531fe647c7a654bd87ae32373543.tar.xz
mdadm-506c331a6030531fe647c7a654bd87ae32373543.zip
udev rules: imsm arrays are a different ID_FS_TYPE, so check for them as
well as regular mdadm arrays. Check to see if we were told on the boot command line to ignore IMSM arrays first though (aka, rd_NO_MDIMSM is not empty). Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r--udev-md-raid.rules4
1 files changed, 3 insertions, 1 deletions
diff --git a/udev-md-raid.rules b/udev-md-raid.rules
index da52058..712c5e5 100644
--- a/udev-md-raid.rules
+++ b/udev-md-raid.rules
@@ -4,7 +4,9 @@ SUBSYSTEM!="block", GOTO="md_end"
# handle potential components of arrays
ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="remove", RUN+="/sbin/mdadm -If $name"
-ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="add", RUN+="/sbin/mdadm --incremental $env{DEVNAME}"
+ENV{ID_FS_TYPE}=="linux_raid_member", ACTION=="add", RUN+="/sbin/mdadm -I $tempnode"
+ENV{ID_FS_TYPE}=="isw_raid_member", ENV{rd_NO_MDIMSM}!="?*", ACTION=="remove", RUN+="/sbin/mdadm -If $name"
+ENV{ID_FS_TYPE}=="isw_raid_member", ENV{rd_NO_MDIMSM}!="?*", ACTION=="add", RUN+="/sbin/mdadm -I $tempnode"
# handle md arrays
ACTION!="add|change", GOTO="md_end"