From 506c331a6030531fe647c7a654bd87ae32373543 Mon Sep 17 00:00:00 2001 From: Doug Ledford Date: Tue, 13 Apr 2010 14:38:44 -0400 Subject: [PATCH 3/4] 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 --- udev-md-raid.rules | 4 +++- 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" -- 1.6.6.1