network: don't use "ifup -m"
[dracut.git] / modules.d / 90mdraid / 59-persistent-storage-md.rules
blob6ef858aa544ed5eeac01e447ee6f74a2db00b639
1 SUBSYSTEM!="block", GOTO="md_end"
2 ACTION!="add|change", GOTO="md_end"
3 # Also don't process disks that are slated to be a multipath device
4 ENV{DM_MULTIPATH_DEVICE_PATH}=="?*", GOTO="md_end"
6 KERNEL!="md[0-9]*|md_d[0-9]*|md/*", KERNEL!="md*", GOTO="md_end"
8 # partitions have no md/{array_state,metadata_version}
9 ENV{DEVTYPE}=="partition", GOTO="md_ignore_state"
11 # container devices have a metadata version of e.g. 'external:ddf' and
12 # never leave state 'inactive'
13 ATTR{md/metadata_version}=="external:[A-Za-z]*", ATTR{md/array_state}=="inactive", GOTO="md_ignore_state"
14 TEST!="md/array_state", GOTO="md_end"
15 ATTR{md/array_state}=="|clear|inactive", GOTO="md_end"
17 LABEL="md_ignore_state"
19 IMPORT{program}="/sbin/mdadm --detail --export $tempnode"
20 IMPORT BLKID
21 OPTIONS+="link_priority=100"
22 OPTIONS+="watch"
23 OPTIONS+="db_persist"
24 LABEL="md_end"