Browse Source

dmraid/mdraid: use ENV{DEVTYPE} instead of ATTR{partition}

master
Harald Hoyer 16 years ago
parent
commit
7045d15460
  1. 2
      modules.d/90dmraid/61-dmraid-imsm.rules
  2. 7
      modules.d/90mdraid/65-md-incremental-imsm.rules

2
modules.d/90dmraid/61-dmraid-imsm.rules

@ -13,7 +13,7 @@ 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'" RUN+="/bin/sh -c '>/tmp/.dmraid_scan-%k; /bin/ln -fs /sbin/dmraid_scan /initqueue/dmraid_scan.sh'"


ATTR{partition}!="?*", \ ENV{DEVTYPE}!="partition", \
RUN+="/sbin/partx -d $env{DEVNAME}" RUN+="/sbin/partx -d $env{DEVNAME}"


LABEL="dm_end" LABEL="dm_end"

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

@ -15,8 +15,11 @@ IMPORT{program}="/sbin/mdadm --examine --export $tempnode"


LABEL="do_md_inc" LABEL="do_md_inc"


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'" RUN+="/sbin/mdadm -I --no-degraded $env{DEVNAME}"


ATTR{partition}!="?*", RUN+="/sbin/partx -d $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" LABEL="md_inc_end"

Loading…
Cancel
Save