Skip to content
Snippets Groups Projects
Commit 7dce2f11 authored by intrigeri's avatar intrigeri
Browse files

sys: only run mdadm if RAID devices actually exist (Closes: #572450)

parent 81921efa
Branches
Tags
No related merge requests found
version 0.9.8 -- UNRELEASED
handler changes
sys:
. Only run mdadm if RAID devices actually exist (Closes: #572450)
version 0.9.7 -- January 27, 2010 version 0.9.7 -- January 27, 2010
backupninja changes backupninja changes
. fix bug in reportspace, thanks Dan Garthwaite . fix bug in reportspace, thanks Dan Garthwaite
......
...@@ -462,7 +462,9 @@ STATUS="Collecting Software RAID information (/etc/mdadm.conf)" ...@@ -462,7 +462,9 @@ STATUS="Collecting Software RAID information (/etc/mdadm.conf)"
catiffile "/etc/mdadm.conf" catiffile "/etc/mdadm.conf"
STATUS="Collecting Software RAID information (/sbin/mdadm -Q)" STATUS="Collecting Software RAID information (/sbin/mdadm -Q)"
if ls /dev/md?* >/dev/null 2>&1; then
catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*' catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*'
fi
STATUS="Collecting Automount information (auto.master)" STATUS="Collecting Automount information (auto.master)"
catiffile "/etc/auto.master" catiffile "/etc/auto.master"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment