소스 검색

Fix MD Raid state detection

Emmanuel Bouthenot 5 년 전
부모
커밋
ed472ac101
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      plugins/client/raid/scripts/raid

+ 1 - 1
plugins/client/raid/scripts/raid

@@ -123,7 +123,7 @@ result=0
 case "${TYPE}" in
     mdraid)
         status="$(mdadm --detail "${DEVICE}" 2>/dev/null | sed -r -n 's/^\s+State\s*:\s*([^ ]+)\s*$/\1/p')"
-        if [ "${status}" != 'clean' ]; then
+        if [ "${status}" != 'clean' ]  && [ "${status}" != 'active' ]; then
             result=1
         fi
         ;;