From: Michael Brown Date: Tue, 24 Jan 2017 13:47:03 +0000 (+0000) Subject: [cloud] Show CPU vendor and model in example cloud boot scripts X-Git-Tag: v1.20.1~329 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=90fc2f273a32793e0d0413d7adbf7bc43b995914;p=thirdparty%2Fipxe.git [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 --- 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