Greetings,
When running on EC2, using the UUID from SMBIOS will not work.
Instead, get the EC2 instance ID when the "hardware" UUID is requested.
This patch implements this for Linux. Windows will come next.
[PATCH 1/4] host: style changes in get_uuid.
[PATCH 2/4] build: indentation fix.
[PATCH 3/4] core: Move global curl init to libmcommon.
[PATCH 4/4] host: Add EC2 instance-id support on Linux.
CMakeLists.txt | 2 -
host.c | 37 ++++++++-----------
host_linux.c | 97 +++++++++++++++++++++++++++++++++++++++++++++++++---
host_private.h | 3 +
host_windows.c | 8 ++++
sysconfig_linux.c | 16 ++------
utilities_linux.c | 22 +++++++++++
utilities_private.h | 8 ++++
8 files changed, 155 insertions(+), 38 deletions(-)
Thanks,
--
Russell Bryant