]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
mdraid: first remove the partitions, then add to the md raid
authorHarald Hoyer <harald@eeepc.(none)>
Tue, 21 Jul 2009 13:40:11 +0000 (15:40 +0200)
committerHarald Hoyer <harald@eeepc.(none)>
Tue, 21 Jul 2009 13:40:11 +0000 (15:40 +0200)
modules.d/90mdraid/65-md-incremental-imsm.rules

index be0913963eabf82ac21da3661c0b7679738f174e..2109598cd33bd41eb074a9e826ef1f2ea9fd916c 100644 (file)
@@ -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"