90mdraid: more thorough 64-md-raid.rules edit

Catch more variations of incremental assembly.

Signed-off-by: Michal Soltys <soltys@ziu.info>
master
Michal Soltys 2011-09-22 17:23:21 +02:00
parent db9b9f396e
commit ae816bb6aa
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ install() {
# 65-md-inc*.rules and its fine-grained controls, or cause other problems
# when we explicitly don't want certain components to be incrementally
# assembled
sed -i -e '/^ENV{ID_FS_TYPE}==.*ACTION=="add".*RUN+="\/sbin\/mdadm --incremental $env{DEVNAME}"$/d' "${initdir}/lib/udev/rules.d/64-md-raid.rules"
sed -ire '/RUN\+?="[[:alpha:]/]*mdadm[[:blank:]]+(--incremental|-I)[[:blank:]]+(\$env\{DEVNAME\}|\$tempnode)"/d' "${initdir}/lib/udev/rules.d/64-md-raid.rules"
fi

inst_rules "$moddir/65-md-incremental-imsm.rules"