You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
628 B
19 lines
628 B
# This file causes block devices with RAID (dmraid) signatures to |
|
# automatically cause dmraid_scan to be run. |
|
# See udev(8) for syntax |
|
|
|
SUBSYSTEM!="block", GOTO="dm_end" |
|
ACTION!="add|change", GOTO="dm_end" |
|
|
|
ENV{ID_FS_TYPE}=="linux_raid_member", GOTO="dm_end" |
|
ENV{ID_FS_TYPE}=="isw_raid_member", ENV{rd_NO_MDIMSM}!="?*", GOTO="dm_end" |
|
|
|
ENV{ID_FS_TYPE}!="*_raid_member", , GOTO="dm_end" |
|
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 --nr 1-1024 $env{DEVNAME}" |
|
|
|
LABEL="dm_end"
|
|
|