--- raidstart.orig 2013-02-07 02:27:40.000000000 +0400 +++ raidstart 2013-08-13 14:38:03.000000000 +0400 @@ -32,11 +32,16 @@ start_raid_using_mdadm() { - local f + local f arr f="$(absolute mdadm 2>/dev/null)" if [ -x "$f" ]; then echo -n "(using mdadm) " +#fix bitmap on ro root fs + for arr in $(awk '/^m.*: inactive/{print "/dev/"$1}' /proc/mdstat); do + "$f" --stop "$arr" + done +#end fix "$f" --assemble --scan return $? fi