c3e8c54
From 5746f04994745ac4ad01b4ae26f6c368ac725fb3 Mon Sep 17 00:00:00 2001
c3e8c54
From: Harald Hoyer <harald@redhat.com>
c3e8c54
Date: Wed, 22 Aug 2012 13:01:53 +0200
c3e8c54
Subject: [PATCH] mdraid: catch nested md raids
c3e8c54
c3e8c54
Thanks to Ian Dall!
c3e8c54
---
c3e8c54
 modules.d/90mdraid/65-md-incremental-imsm.rules | 4 +++-
c3e8c54
 1 file changed, 3 insertions(+), 1 deletion(-)
c3e8c54
c3e8c54
diff --git a/modules.d/90mdraid/65-md-incremental-imsm.rules b/modules.d/90mdraid/65-md-incremental-imsm.rules
c3e8c54
index 6dd696a..d66dd01 100644
c3e8c54
--- a/modules.d/90mdraid/65-md-incremental-imsm.rules
c3e8c54
+++ b/modules.d/90mdraid/65-md-incremental-imsm.rules
c3e8c54
@@ -5,7 +5,9 @@
c3e8c54
 ACTION!="add|change", GOTO="md_end"
c3e8c54
 SUBSYSTEM!="block", GOTO="md_end"
c3e8c54
 ENV{rd_NO_MD}=="?*", GOTO="md_end"
c3e8c54
-KERNEL=="md*", GOTO="md_end"
c3e8c54
+KERNEL=="md*", ENV{ID_FS_TYPE}!="linux_raid_member", GOTO="md_end"
c3e8c54
+KERNEL=="md*", ACTION!="change", GOTO="md_end"
c3e8c54
+
c3e8c54
 # Also don't process disks that are slated to be a multipath device
c3e8c54
 ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="md_end"
c3e8c54