OBS User unknown
2008-06-23 02:11:39 +00:00
committed by Git OBS Bridge
parent 90c5c1a6cc
commit ad7f039e9b
10 changed files with 108 additions and 195 deletions

View File

@@ -130,9 +130,11 @@ case "$1" in
rm -rf /tmp/mdadm.conf
if ! mdadm --examine --scan --config=partitions >/tmp/mdadm.conf
then
echo "mdadm --examine --scan failed:"
cat /tmp/mdadm.conf
rm -f /tmp/mdadm.conf
rc_failed 1
rc_status -v
chmod 0600 /tmp/mdadm.conf
rc_exit
fi
chmod 0600 /tmp/mdadm.conf
@@ -143,6 +145,7 @@ case "$1" in
# no partitions found, "unused"
rc_status -u
fi
rm -f /tmp/mdadm.conf
fi
;;