diff --git a/coreos-base/oem-hcloud/files/base/README b/coreos-base/oem-hcloud/files/base/README new file mode 100644 index 0000000000..d128309fef --- /dev/null +++ b/coreos-base/oem-hcloud/files/base/README @@ -0,0 +1,4 @@ +These Ignition configs are part of the OEM configuration. Do not modify +them. If you want to write an Ignition config directly to disk, put it in +../config.ign and it will be applied at first boot instead of a config +in userdata. diff --git a/coreos-base/oem-hcloud/files/base/base.ign b/coreos-base/oem-hcloud/files/base/base.ign new file mode 100644 index 0000000000..3c3e2aafac --- /dev/null +++ b/coreos-base/oem-hcloud/files/base/base.ign @@ -0,0 +1,17 @@ +{ + "ignition": { + "version": "2.1.0" + }, + "systemd": { + "units": [ + { + "name": "coreos-metadata-sshkeys@.service", + "enabled": true + }, + { + "name": "coreos-metadata.service", + "enabled": true + } + ] + } +} diff --git a/coreos-base/oem-hcloud/files/grub.cfg b/coreos-base/oem-hcloud/files/grub.cfg new file mode 100644 index 0000000000..a2f0f861b2 --- /dev/null +++ b/coreos-base/oem-hcloud/files/grub.cfg @@ -0,0 +1,3 @@ +# CoreOS GRUB settings + +set oem_id="hcloud" diff --git a/coreos-base/oem-hcloud/files/oem-release b/coreos-base/oem-hcloud/files/oem-release new file mode 100644 index 0000000000..5635c5dc93 --- /dev/null +++ b/coreos-base/oem-hcloud/files/oem-release @@ -0,0 +1,5 @@ +ID=hcloud +VERSION_ID=@@OEM_VERSION_ID@@ +NAME="Hetzner Cloud" +HOME_URL="https://www.hetzner.com/cloud" +BUG_REPORT_URL="https://issues.coreos.com" diff --git a/coreos-base/oem-hcloud/metadata.xml b/coreos-base/oem-hcloud/metadata.xml new file mode 100644 index 0000000000..097975e3ad --- /dev/null +++ b/coreos-base/oem-hcloud/metadata.xml @@ -0,0 +1,4 @@ + + + + diff --git a/coreos-base/oem-hcloud/oem-hcloud-0.1.ebuild b/coreos-base/oem-hcloud/oem-hcloud-0.1.ebuild new file mode 100644 index 0000000000..1417716993 --- /dev/null +++ b/coreos-base/oem-hcloud/oem-hcloud-0.1.ebuild @@ -0,0 +1,27 @@ +# Copyright (c) 2018 CoreOS, Inc.. All rights reserved. +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +DESCRIPTION="OEM suite for Hetzner Cloud images" +HOMEPAGE="" +SRC_URI="" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 x86" + +# no source directory +S="${WORKDIR}" + +src_prepare() { + sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \ + "${FILESDIR}/oem-release" > "${T}/oem-release" || die +} + +src_install() { + insinto "/usr/share/oem" + doins "${FILESDIR}/grub.cfg" + doins "${T}/oem-release" + doins -r "${FILESDIR}/base" +}