From 2604b8d782cfee6455b4e15daa8ecf5a9ec56115 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kai=20L=C3=BCke?= Date: Wed, 3 Feb 2021 14:49:23 +0100 Subject: [PATCH] coreos-base/oem-*: add Pro to OEM name where applicable Using the change in https://github.com/kinvolk/init/pull/34 we can show the OEM on the motd, and by including "Pro" in the OEM name we can also show whether it is a Pro image or not. Later this may be revisited if the /usr/../os-release file is the place for it. --- .../coreos-base/oem-azure-pro/files/oem-release | 2 +- .../coreos-base/oem-ec2-compat/oem-ec2-compat-0.1.2.ebuild | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure-pro/files/oem-release b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure-pro/files/oem-release index faf1676145..0c5d4d7d9f 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure-pro/files/oem-release +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-azure-pro/files/oem-release @@ -1,5 +1,5 @@ ID=azure VERSION_ID=@@OEM_VERSION_ID@@ -NAME="Microsoft Azure" +NAME="Microsoft Azure (Pro)" HOME_URL="https://azure.microsoft.com/" BUG_REPORT_URL="https://issues.flatcar-linux.org" diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.1.2.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.1.2.ebuild index 81f2781645..c315ace241 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.1.2.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/oem-ec2-compat/oem-ec2-compat-0.1.2.ebuild @@ -29,7 +29,11 @@ S="${WORKDIR}" src_prepare() { if use ec2 || use aws_pro ; then ID="ami" - NAME="Amazon EC2" + if use ec2; then + NAME="Amazon EC2" + else + NAME="Amazon EC2 (Pro)" + fi HOME_URL="http://aws.amazon.com/ec2/" elif use openstack ; then ID="openstack"