2009-03-18 18:55:49 +00:00
|
|
|
# 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", \
|
|
|
|
IMPORT{program}="/sbin/mdadm --examine --export $tempnode", \
|
2009-03-20 21:13:38 +00:00
|
|
|
RUN+="/bin/bash -c '[ ! -f /dev/.in_sysinit ] && mdadm -I $env{DEVNAME}'"
|
2009-03-18 18:55:49 +00:00
|
|
|
|