add "--nr 1-1024" to partx, otherwise partx will try to delete
partitions 1-INT_MAX, which takes a long time.
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"
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}"