aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system4
1 files changed, 3 insertions, 1 deletions
diff --git a/collect.d/system b/collect.d/system
index 21909c7..1ea8196 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -44,7 +44,9 @@ cat /proc/mounts > procmounts
# thin clients from diskless workstations.
runlevel > runlevel
-if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect; then
+# Throw away error message from laptop-detect using dmidecode in Xen
+# domUs. See #438693 for more info.
+if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect 2>/dev/null; then
touch laptop
fi