coreos-base/oem-xen: Introduce xen configs

Simple stuff, setting console to hvc0 and enabling autologin.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2024-04-11 13:40:23 +00:00
parent 265ba817dc
commit 2b7ea39ce2
5 changed files with 40 additions and 0 deletions

View File

@ -133,6 +133,7 @@ IMG_qemu_uefi_OEM_SYSEXT=oem-qemu
## xen
IMG_xen_CONF_FORMAT=xl
IMG_xen_OEM_PACKAGE=oem-xen
## virtualbox
IMG_virtualbox_DISK_FORMAT=vmdk_ide

View File

@ -0,0 +1,3 @@
# Flatcar GRUB settings
set linux_console="console=hvc0"
set linux_append="flatcar.autologin"

View File

@ -0,0 +1,4 @@
ID=xen
VERSION_ID=@@OEM_VERSION_ID@@
NAME="Xen"
BUG_REPORT_URL="https://issues.flatcar.org"

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,28 @@
# Copyright (c) 2013 CoreOS, Inc.. All rights reserved.
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="OEM suite for Xen"
HOMEPAGE=""
SRC_URI=""
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
IUSE=""
# no source directory
S="${WORKDIR}"
src_prepare() {
default
sed -e "s\\@@OEM_VERSION_ID@@\\${PVR}\\g" \
"${FILESDIR}/oem-release" > "${T}/oem-release" || die
}
src_install() {
insinto "/oem"
doins "${FILESDIR}/grub.cfg"
doins "${T}/oem-release"
}