Merge pull request #1806 from flatcar/tormath1/linode

oem: provide akamai (linode) images
This commit is contained in:
Mathieu Tortuyaux 2024-06-21 09:33:10 +02:00 committed by GitHub
commit ab4e709fa6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 33 additions and 1 deletions

View File

@ -6,6 +6,7 @@
# Default values use the format IMG_DEFAULT_<opt>. # Default values use the format IMG_DEFAULT_<opt>.
VALID_IMG_TYPES=( VALID_IMG_TYPES=(
akamai
ami ami
ami_vmdk ami_vmdk
azure azure
@ -44,6 +45,7 @@ VALID_IMG_TYPES=(
#list of oem package names, minus the oem- prefix #list of oem package names, minus the oem- prefix
VALID_OEM_PACKAGES=( VALID_OEM_PACKAGES=(
akamai
azure azure
cloudsigma cloudsigma
cloudstack cloudstack
@ -325,6 +327,11 @@ IMG_kubevirt_OEM_USE=kubevirt
IMG_kubevirt_OEM_SYSEXT=oem-kubevirt IMG_kubevirt_OEM_SYSEXT=oem-kubevirt
IMG_kubevirt_DISK_EXTENSION=qcow2 IMG_kubevirt_DISK_EXTENSION=qcow2
## akamai (Linode)
IMG_akamai_OEM_PACKAGE=common-oem-files
IMG_akamai_OEM_USE=akamai
IMG_akamai_OEM_SYSEXT=oem-akamai
########################################################### ###########################################################
# Print the default vm type for the specified board # Print the default vm type for the specified board

View File

@ -0,0 +1 @@
- Added Akamai / Linode images ([flatcar/scripts#1806](https://github.com/flatcar/scripts/pull/1806))

View File

@ -140,6 +140,8 @@ function _vm_build_impl() {
COMPRESSION_FORMAT="zip" COMPRESSION_FORMAT="zip"
elif [[ "${format}" =~ ^(scaleway|kubevirt)$ ]];then elif [[ "${format}" =~ ^(scaleway|kubevirt)$ ]];then
COMPRESSION_FORMAT="none" COMPRESSION_FORMAT="none"
elif [[ "${format}" =~ ^(akamai)$ ]];then
COMPRESSION_FORMAT="gz"
fi fi
./run_sdk_container -n "${vms_container}" -C "${packages_image}" \ ./run_sdk_container -n "${vms_container}" -C "${packages_image}" \
-v "${vernum}" \ -v "${vernum}" \

View File

@ -23,6 +23,8 @@ ConditionKernelCommandLine=|flatcar.oem.id=hetzner
ConditionKernelCommandLine=|flatcar.oem.id=kubevirt ConditionKernelCommandLine=|flatcar.oem.id=kubevirt
ConditionKernelCommandLine=|flatcar.oem.id=akamai
Description=Flatcar Metadata Agent Description=Flatcar Metadata Agent
[Service] [Service]

View File

@ -29,6 +29,7 @@ if [[ ${1:-} = 'flatcar-local-variables' ]]; then
fi fi
COMMON_OEMIDS=( COMMON_OEMIDS=(
akamai
ami ami
azure azure
hetzner hetzner

View File

@ -10,7 +10,7 @@ CROS_WORKON_REPO="https://github.com"
if [[ "${PV}" == 9999 ]]; then if [[ "${PV}" == 9999 ]]; then
KEYWORDS="~amd64 ~arm ~arm64 ~x86" KEYWORDS="~amd64 ~arm ~arm64 ~x86"
else else
CROS_WORKON_COMMIT="33b692d9d67e8d9b09378bb2be2a66d1aa439a15" # flatcar-master CROS_WORKON_COMMIT="05e3d8b9c0f8e95d5044db5133b3e75d205f6d91" # flatcar-master
KEYWORDS="amd64 arm arm64 x86" KEYWORDS="amd64 arm arm64 x86"
fi fi

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
</pkgmetadata>

View File

@ -0,0 +1,15 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="OEM suite for Akamai (previously Linode)"
HOMEPAGE="https://www.linode.com"
SRC_URI=""
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 arm64"
IUSE=""
OEM_NAME="Akamai"