From: Harald Hoyer Date: Thu, 23 Jul 2009 09:58:24 +0000 (+0200) Subject: dmraid/mdraid: only try to delete partition 1-1024 X-Git-Tag: 0.7~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0e77eb378272ff6117b6857e6f5816460f74471f;p=thirdparty%2Fdracut.git dmraid/mdraid: only try to delete partition 1-1024 add "--nr 1-1024" to partx, otherwise partx will try to delete partitions 1-INT_MAX, which takes a long time. --- diff --git a/modules.d/90dmraid/61-dmraid-imsm.rules b/modules.d/90dmraid/61-dmraid-imsm.rules index 1c32cbed8..172e09f16 100644 --- a/modules.d/90dmraid/61-dmraid-imsm.rules +++ b/modules.d/90dmraid/61-dmraid-imsm.rules @@ -14,6 +14,6 @@ TEST=="/tmp/.dmraid_scan-%k", GOTO="dm_end" RUN+="/bin/sh -c '>/tmp/.dmraid_scan-%k; /bin/ln -fs /sbin/dmraid_scan /initqueue/dmraid_scan.sh'" ENV{DEVTYPE}!="partition", \ - RUN+="/sbin/partx -d $env{DEVNAME}" + RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}" LABEL="dm_end" diff --git a/modules.d/90mdraid/65-md-incremental-imsm.rules b/modules.d/90mdraid/65-md-incremental-imsm.rules index 2109598cd..5618b8720 100644 --- a/modules.d/90mdraid/65-md-incremental-imsm.rules +++ b/modules.d/90mdraid/65-md-incremental-imsm.rules @@ -16,7 +16,7 @@ IMPORT{program}="/sbin/mdadm --examine --export $tempnode" LABEL="do_md_inc" ENV{DEVTYPE}!="partition", \ - RUN+="/sbin/partx -d $env{DEVNAME}" + RUN+="/sbin/partx -d --nr 1-1024 $env{DEVNAME}" RUN+="/sbin/mdadm -I --no-degraded $env{DEVNAME}"