]> git.ipfire.org Git - thirdparty/dracut.git/commitdiff
dmraid/mdraid: only try to delete partition 1-1024
authorHarald Hoyer <harald@redhat.com>
Thu, 23 Jul 2009 09:58:24 +0000 (11:58 +0200)
committerHarald Hoyer <harald@redhat.com>
Thu, 23 Jul 2009 09:58:24 +0000 (11:58 +0200)
add "--nr 1-1024" to partx, otherwise partx will try to delete
partitions 1-INT_MAX, which takes a long time.

modules.d/90dmraid/61-dmraid-imsm.rules
modules.d/90mdraid/65-md-incremental-imsm.rules

index 1c32cbed833c9e3daa1fac9d43097c0d518539b5..172e09f16b8545664747091069821c2b150e664e 100644 (file)
@@ -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"
index 2109598cd33bd41eb074a9e826ef1f2ea9fd916c..5618b8720122575e80be5290cd9b8f4f55b416cb 100644 (file)
@@ -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}"