View | Details | Raw Unified | Return to bug 29283
Collapse All | Expand All

(-)raidstart.orig (-1 / +6 lines)
Lines 32-42 Link Here
32
32
33
start_raid_using_mdadm()
33
start_raid_using_mdadm()
34
{
34
{
35
	local f
35
	local f arr
36
36
37
	f="$(absolute mdadm 2>/dev/null)"
37
	f="$(absolute mdadm 2>/dev/null)"
38
	if [ -x "$f" ]; then
38
	if [ -x "$f" ]; then
39
		echo -n "(using mdadm) "
39
		echo -n "(using mdadm) "
40
#fix bitmap on ro root fs
41
		for arr in $(awk '/^m.*: inactive/{print "/dev/"$1}' /proc/mdstat); do
42
		    "$f" --stop "$arr"
43
		done
44
#end fix
40
		"$f" --assemble --scan
45
		"$f" --assemble --scan
41
		return $?
46
		return $?
42
	fi
47
	fi

Return to bug 29283