3 type getarg
>/dev
/null
2>&1 || .
/lib
/dracut-lib.sh
5 _offroot
=$
(strstr
"$(mdadm --help-options 2>&1)" offroot
&& echo --offroot)
7 for md
in /dev
/md
[0-9_]*; do
8 [ -b "$md" ] ||
continue
9 udevinfo
="$(udevadm info --query=env --name=$md)"
10 strstr
"$udevinfo" "DEVTYPE=partition" && continue
11 if strstr
"$udevinfo" "MD_LEVEL=container"; then
12 containers
="$containers $md"
15 mdadm
$_offroot -S "$md" >/dev
/null
2>&1
18 for md
in $containers; do
19 mdadm
$_offroot -S "$md" >/dev
/null
2>&1
22 unset containers udevinfo _offroot