From 7dce2f1138796cfb78c22a402b6039bdf76d4220 Mon Sep 17 00:00:00 2001 From: intrigeri Date: Sat, 6 Mar 2010 15:27:34 +0100 Subject: sys: only run mdadm if RAID devices actually exist (Closes: #572450) --- handlers/sys.in | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'handlers/sys.in') 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" -- cgit v1.2.3