From df5d1022f12e9a4620da763bb510095c8ee0777e Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Fri, 25 Dec 2015 10:51:01 +0100 Subject: [PATCH] uuid plugin: look in smbios system table for uuid This saves a lot of parsing when dmidecode output is large. --- src/uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/uuid.c b/src/uuid.c index 5bb4472e..446969aa 100644 --- a/src/uuid.c +++ b/src/uuid.c @@ -97,7 +97,7 @@ uuid_parse_dmidecode(FILE *file) static char * uuid_get_from_dmidecode(void) { - FILE *dmidecode = popen("dmidecode 2>/dev/null", "r"); + FILE *dmidecode = popen("dmidecode -t system 2>/dev/null", "r"); char *uuid; if (!dmidecode) -- 2.30.2