Author: arekm
Date: Sun Aug 30 22:14:57 2009
New Revision: 10518

Modified:
   rc-scripts/trunk/rc.d/rc.sysinit
Log:
mdadm status codes 0 and 2 (new in mdadm 3.0) are success

Modified: rc-scripts/trunk/rc.d/rc.sysinit
==============================================================================
--- rc-scripts/trunk/rc.d/rc.sysinit    (original)
+++ rc-scripts/trunk/rc.d/rc.sysinit    Sun Aug 30 22:14:57 2009
@@ -668,9 +668,17 @@
                        rc=0
                        if [ -x /sbin/mdadm -a -f /etc/mdadm.conf ]; then
                                if (grep -qE "^([[:blank:]]|)ARRAY[[:blank:]]" 
/etc/mdadm.conf 2>/dev/null); then
-                                       run_cmd "Starting up RAID devices" 
/sbin/mdadm --assemble --scan --auto=yes
+                                       show "Starting up RAID devices"; busy
+                                       /sbin/mdadm --assemble --scan --auto=yes
                                        rc=$?
-                                       [ "$rc" -eq 0 ] && goraidtab=0 && 
golvm=1
+                                       if [ "$rc" -eq 0 -o "$rc" -eq 2 ]; then
+                                               deltext; ok
+                                               goraidtab=0
+                                               golvm=1
+                                       else
+                                               deltext; fail
+                                       fi
+
                                fi
                        fi
 
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to