cadvisor/utils/sysfs
Pradipta Kr. Banerjee d88ed0ab97 Handle system UUID retrieval for Power(ppc64) Systems
This patch adds requisite support to retrieve system uuid details for Power
systems. Power systems do not have DMI data. However most of the relevant details
are either in /proc or /sys. For baremetal servers, the UID is available in
/proc/device-tree/system-id. For guests the UUID is available in
/proc/device-tree/vm,uuid inside the guest. Guest's /proc filesystem do not have
/proc/device-tree/system-id

Example
On baremetal system
$cat /proc/device-tree/system-id
2122AAA

On a guest VM
$cat /proc/device-tree/vm,uuid
4b1a1a7e-079e-479c-8072-d8108f31050c

Signed-off-by: Pradipta Kr. Banerjee <bpradip@in.ibm.com>
2015-05-22 10:40:03 +05:30
..
fakesysfs Add system uuid and machine id information 2015-03-01 15:06:19 -05:00
sysfs.go Handle system UUID retrieval for Power(ppc64) Systems 2015-05-22 10:40:03 +05:30