1 diff -ur rc-scripts-0.4.12.orig/rc.d/rc.sysinit rc-scripts-0.4.12/rc.d/rc.sysinit
2 --- rc-scripts-0.4.12.orig/rc.d/rc.sysinit 2014-06-19 20:04:44.000000000 +0000
3 +++ rc-scripts-0.4.12/rc.d/rc.sysinit 2014-07-22 16:10:23.162000000 +0000
6 # mdadm - manage MD devices aka Linux Software RAID
8 - if [ ! -x /sbin/mdadm -o ! -f /etc/mdadm.conf ]; then
9 + if [ ! -x /sbin/mdadm ]; then
14 - local rc=0 golvm=0 have_md=0
15 if [ ! -f /proc/mdstat ]; then
19 - # assume we have md if at least one ARRAY line is present
20 - if grep -qE "^([[:blank:]]|)ARRAY[[:blank:]]" /etc/mdadm.conf; then
23 - # configured to do auto scanning
24 - if [ $have_md = 0 ] && grep -qE "^([[:blank:]]|)DEVICE[[:blank:]]partitions" /etc/mdadm.conf; then
29 - if [ $have_md = 0 ]; then
33 - show "Starting up RAID devices"; busy
34 - /sbin/mdadm --assemble --scan --auto=yes
36 - if [ "$rc" -eq 0 -o "$rc" -eq 2 ]; then
37 - # rc is used later too, so set sane value
45 - # A non-zero return means there were problems
46 - if [ $rc -gt 0 ]; then
47 - [ -e /proc/splash ] && echo "verbose" > /proc/splash
48 - show "Starting up RAID devices"; fail
50 - PS1="$(nls '(RAID Repair)# ')"; export PS1
51 - repair_shell "$(nls '*** An error occurred during the RAID startup.')"
54 - # LVM on RAID (keep in sync with LVM init)
55 - if [ "$golvm" -eq "1" ]; then
56 - if [ -x /sbin/vgscan -a -x /sbin/vgchange ]; then
57 - run_cmd "Scanning for LVM volume groups (on RAID)" /sbin/vgscan $lvmignorelocking
58 - run_cmd "Activating LVM volume groups (on RAID)" /sbin/vgchange -a y $lvmsysinit
59 - [ "$lvmversion" = "2" ] && /sbin/vgmknodes
62 - show "Starting up RAID devices"; ok
64 + run_cmd "Starting up RAID devices" /sbin/mdadm --assemble --scan
73 + if ! is_no "$MDADM"; then
77 if ! is_no "$LVM2"; then
81 [ $delay_cryptsetup = 0 ] && ok || fail
84 - if ! is_no "$MDADM"; then
90 if [ -z "$fastboot" ] && [ -z "$nofsck" ]; then