summaryrefslogtreecommitdiff
path: root/rules/packages
diff options
context:
space:
mode:
authorMichal Soltys <nozo@ziu.info>2008-08-27 16:58:10 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-08-27 16:58:10 +0200
commit41ac13f49f0153d544fcf5099bb201cf3a3e19d4 (patch)
treee882b869bd6af77bf7126d52767bd7e58d38c067 /rules/packages
parent8eb4ab836cb022f5ae7e9154fda20a3f536e8444 (diff)
rules: fix md rules for partitioned devices
Diffstat (limited to 'rules/packages')
-rw-r--r--rules/packages/64-md-raid.rules6
1 files changed, 4 insertions, 2 deletions
diff --git a/rules/packages/64-md-raid.rules b/rules/packages/64-md-raid.rules
index d0510b3095..02a321093a 100644
--- a/rules/packages/64-md-raid.rules
+++ b/rules/packages/64-md-raid.rules
@@ -11,8 +11,10 @@ KERNEL!="md*", GOTO="md_end"
ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
-ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
-ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
+ENV{DEVTYPE}=="disk", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}"
+ENV{DEVTYPE}=="disk", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}"
+ENV{DEVTYPE}=="partition", ENV{MD_NAME}=="?*", SYMLINK+="disk/by-id/md-name-$env{MD_NAME}-part%n"
+ENV{DEVTYPE}=="partition", ENV{MD_UUID}=="?*", SYMLINK+="disk/by-id/md-uuid-$env{MD_UUID}-part%n"
IMPORT{program}="vol_id --export $tempnode"
OPTIONS+="link_priority=100"