Edit File by line
/home/barbar84/www/wp-conte.../plugins/sujqvwi/ShExBy/shex_roo.../lib/dracut/modules..../90mdraid
File: mdraid-waitclean.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
if getargbool 0 rd.md.waitclean; then
[2] Fix | Delete
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
[3] Fix | Delete
containers=""
[4] Fix | Delete
for md in /dev/md[0-9_]*; do
[5] Fix | Delete
[ -b "$md" ] || continue
[6] Fix | Delete
udevinfo="$(udevadm info --query=env --name=$md)"
[7] Fix | Delete
strstr "$udevinfo" "DEVTYPE=partition" && continue
[8] Fix | Delete
if strstr "$udevinfo" "MD_LEVEL=container"; then
[9] Fix | Delete
containers="$containers $md"
[10] Fix | Delete
continue
[11] Fix | Delete
fi
[12] Fix | Delete
info "Waiting for $md to become clean"
[13] Fix | Delete
mdadm -W "$md" >/dev/null 2>&1
[14] Fix | Delete
done
[15] Fix | Delete
[16] Fix | Delete
for md in $containers; do
[17] Fix | Delete
info "Waiting for $md to become clean"
[18] Fix | Delete
mdadm -W "$md" >/dev/null 2>&1
[19] Fix | Delete
done
[20] Fix | Delete
[21] Fix | Delete
unset containers udevinfo
[22] Fix | Delete
fi
[23] Fix | Delete
[24] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function