summaryrefslogtreecommitdiff
path: root/rules
diff options
context:
space:
mode:
authorMichal Soltys <soltys@ziu.info>2009-03-16 01:29:19 +0100
committerKay Sievers <kay.sievers@vrfy.org>2009-03-16 01:29:19 +0100
commit376f0a1ef57721a9223b9a3fdf18c717ace64d81 (patch)
treeeadec289ff16006c345c4aae642136cc7eaa0d7a /rules
parent3d8599873a3dcba1ebd83dc984cd490384d40c30 (diff)
rules: md-raid.rules fix
md/array_state in case of partition doesn't exist, so all uevents for partitions didn't execute any SYMLINK rules Signed-off-by: Michal Soltys <soltys@ziu.info>
Diffstat (limited to 'rules')
-rw-r--r--rules/packages/64-md-raid.rules3
1 files changed, 3 insertions, 0 deletions
diff --git a/rules/packages/64-md-raid.rules b/rules/packages/64-md-raid.rules
index abb029c46f..4faf18c106 100644
--- a/rules/packages/64-md-raid.rules
+++ b/rules/packages/64-md-raid.rules
@@ -8,6 +8,9 @@ ACTION!="add|change", GOTO="md_end"
# import data from a raid set
KERNEL!="md*", GOTO="md_end"
+# partitions have no md/{array_state,metadata_version}
+ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
+
# container devices have a metadata version of e.g. 'external:ddf' and
# never leave state 'inactive'
ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"