From: Harald Hoyer Date: Tue, 21 Jul 2009 13:40:11 +0000 (+0200) Subject: mdraid: first remove the partitions, then add to the md raid X-Git-Tag: 0.6~9 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=308b10311c09651ac7b46886d6b5ded980b5a4f8;p=thirdparty%2Fdracut.git mdraid: first remove the partitions, then add to the md raid --- diff --git a/modules.d/90mdraid/65-md-incremental-imsm.rules b/modules.d/90mdraid/65-md-incremental-imsm.rules index be0913963..2109598cd 100644 --- a/modules.d/90mdraid/65-md-incremental-imsm.rules +++ b/modules.d/90mdraid/65-md-incremental-imsm.rules @@ -15,11 +15,11 @@ IMPORT{program}="/sbin/mdadm --examine --export $tempnode" LABEL="do_md_inc" +ENV{DEVTYPE}!="partition", \ + RUN+="/sbin/partx -d $env{DEVNAME}" + RUN+="/sbin/mdadm -I --no-degraded $env{DEVNAME}" RUN+="/bin/sh -c '>/tmp/.mdraid_start-%k; /bin/ln -s /sbin/mdraid_start /initqueue/mdraid_start.sh'" -ENV{DEVTYPE}!="partition", \ - RUN+="/sbin/partx -d $env{DEVNAME}" - LABEL="md_inc_end"