From 376f0a1ef57721a9223b9a3fdf18c717ace64d81 Mon Sep 17 00:00:00 2001 From: Michal Soltys Date: Mon, 16 Mar 2009 01:29:19 +0100 Subject: [PATCH] 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 --- rules/packages/64-md-raid.rules | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rules/packages/64-md-raid.rules b/rules/packages/64-md-raid.rules index abb029c4..4faf18c1 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" -- 2.39.5