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.
This commit is contained in:
Kai Lüke 2021-02-03 14:49:23 +01:00
parent e688b44567
commit 2604b8d782
2 changed files with 6 additions and 2 deletions

View File

@ -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"

View File

@ -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"