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.

17 lines
703 B

# This file causes block devices with Linux RAID (mdadm) signatures to
# automatically cause mdadm to be run.
# See udev(8) for syntax
SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="linux_raid_member|isw_raid_member", \
TEST!="/tmp/.mdraid_start-%k", \
IMPORT{program}="/sbin/mdadm --examine --export $tempnode", \
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'"
SUBSYSTEM=="block", ACTION=="add", \
ENV{ID_FS_TYPE}=="linux_raid_member|isw_raid_member", \
TEST!="/tmp/.mdraid_start-%k", \
ATTR{partition}!="?*", \
RUN+="/sbin/partx -d $env{DEVNAME}"