diff options
author | Michael Brown <mcb30@ipxe.org> | 2017-01-24 13:47:03 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2017-01-24 13:47:03 +0000 |
commit | 90fc2f273a32793e0d0413d7adbf7bc43b995914 (patch) | |
tree | 87f622788d430250cd3b4c5795bff073317265e3 /src/config | |
parent | 16aed6e5ce808615df95c7767b4dd8793c398d93 (diff) | |
download | ipxe-90fc2f273a32793e0d0413d7adbf7bc43b995914.tar.gz |
[cloud] Show CPU vendor and model in example cloud boot scripts
Some problems arise only when running on a specific CPU type (e.g.
non-functional timer interrupts as observed in Azure AMD instances).
Include the CPU vendor and model within the sample cloud boot scripts,
to assist in debugging such problems.
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/cloud/aws.ipxe | 1 | ||||
-rw-r--r-- | src/config/cloud/gce.ipxe | 1 | ||||
-rw-r--r-- | src/config/cloud/settings.h | 4 |
3 files changed, 6 insertions, 0 deletions
diff --git a/src/config/cloud/aws.ipxe b/src/config/cloud/aws.ipxe index d857d71df..2c96e3888 100644 --- a/src/config/cloud/aws.ipxe +++ b/src/config/cloud/aws.ipxe @@ -1,6 +1,7 @@ #!ipxe echo Amazon EC2 - iPXE boot via user-data +echo CPU: ${cpuvendor} ${cpumodel} ifstat || dhcp || route || diff --git a/src/config/cloud/gce.ipxe b/src/config/cloud/gce.ipxe index 95330d718..88e12b56b 100644 --- a/src/config/cloud/gce.ipxe +++ b/src/config/cloud/gce.ipxe @@ -1,6 +1,7 @@ #!ipxe echo Google Compute Engine - iPXE boot via metadata +echo CPU: ${cpuvendor} ${cpumodel} ifstat || dhcp || route || diff --git a/src/config/cloud/settings.h b/src/config/cloud/settings.h index e69de29bb..34deeb070 100644 --- a/src/config/cloud/settings.h +++ b/src/config/cloud/settings.h @@ -0,0 +1,4 @@ +/* It can often be useful to know the CPU on which a cloud instance is + * running (e.g. to isolate problems with Azure AMD instances). + */ +#define CPUID_SETTINGS |