From aef788ac8927ffa74429daaffb572566fae782ec Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 25 Dec 2015 10:53:41 +0100 Subject: [PATCH] uuid plugin: only look in /sys on Linux --- src/uuid.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/uuid.c b/src/uuid.c index 446969aa..223bfd54 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -201,8 +201,10 @@ uuid_get_local(void) if ((uuid = uuid_get_from_dmidecode()) != NULL) return (uuid); +#if defined(__linux__) if ((uuid = uuid_get_from_file("/sys/hypervisor/uuid")) != NULL) return (uuid); +#endif return (NULL); } -- 2.30.2