From: intrigeri Date: Sat, 6 Mar 2010 14:27:34 +0000 (+0100) Subject: sys: only run mdadm if RAID devices actually exist (Closes: #572450) X-Git-Url: https://git.stderr.nl/gitweb?a=commitdiff_plain;h=7dce2f1138796cfb78c22a402b6039bdf76d4220;p=matthijs%2Fupstream%2Fbackupninja.git sys: only run mdadm if RAID devices actually exist (Closes: #572450) --- diff --git a/ChangeLog b/ChangeLog index 4be58ba..2fbe7ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +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 backupninja changes . fix bug in reportspace, thanks Dan Garthwaite diff --git a/handlers/sys.in b/handlers/sys.in index 69751ed..a92663e 100755 --- a/handlers/sys.in +++ b/handlers/sys.in @@ -462,7 +462,9 @@ STATUS="Collecting Software RAID information (/etc/mdadm.conf)" catiffile "/etc/mdadm.conf" STATUS="Collecting Software RAID information (/sbin/mdadm -Q)" -catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*' +if ls /dev/md?* >/dev/null 2>&1; then + catifexec "/sbin/mdadm" "-Q" "--detail" '/dev/md?*' +fi STATUS="Collecting Automount information (auto.master)" catiffile "/etc/auto.master"