
5 changed files with 15 additions and 30 deletions
@ -1,23 +0,0 @@
@@ -1,23 +0,0 @@
|
||||
# This file causes block devices with Linux RAID (mdadm) signatures to |
||||
# automatically cause mdadm to be run. |
||||
# See udev(8) for syntax |
||||
|
||||
ACTION!="add", GOTO="md_inc_end" |
||||
SUBSYSTEM!="block", GOTO="md_inc_end" |
||||
ENV{ID_FS_TYPE}!="linux_raid_member", GOTO="md_inc_end" |
||||
|
||||
TEST=="/tmp/.mdraid_start-%k", GOTO="md_inc_end" |
||||
|
||||
IMPORT{program}="/sbin/mdadm --examine --export $tempnode" |
||||
|
||||
# UUID CHECK |
||||
|
||||
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'" |
||||
|
||||
ATTR{partition}!="?*", RUN+="/sbin/partx -d $env{DEVNAME}" |
||||
|
||||
LABEL="md_inc_end" |
@ -0,0 +1,2 @@
@@ -0,0 +1,2 @@
|
||||
info "rd_NO_MDIMSM: no MD RAID for imsm/isw raids" |
||||
udevadm control --property=rd_NO_MDIMSM=1 |
Loading…
Reference in new issue