From fcffb627a7831a53b5f817848e4d1f1a140b9eb5 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 15 Nov 2017 15:48:17 -0500 Subject: virt/containers: introduce hyperstart kernel + initrd For VMs masquerading as kernels, we need a kernel and initrd. runv uses hyperstart for this purpose so we add the recipe here. Once built, the kernel and initrd are installed to where runv can find them automatically. Signed-off-by: Bruce Ashfield --- recipes-extended/hyperstart/hyperstart_git.bb | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 recipes-extended/hyperstart/hyperstart_git.bb diff --git a/recipes-extended/hyperstart/hyperstart_git.bb b/recipes-extended/hyperstart/hyperstart_git.bb new file mode 100644 index 00000000..02974772 --- /dev/null +++ b/recipes-extended/hyperstart/hyperstart_git.bb @@ -0,0 +1,25 @@ +SUMMARY = "The tiny Init service for HyperContainer" +DESCRIPTION = "The init Task for HyperContainer" + +LICENSE = "Apache-2" +LIC_FILES_CHKSUM = "file://LICENSE;md5=fa818a259cbed7ce8bc2a22d35a464fc" + +inherit autotools-brokensep + +SRC_URI = "git://github.com/hyperhq/hyperstart.git" + +SRCREV = "ad48a3230836f59ada163659cde151a37522068b" +PV = "v0.2+git${SRCREV}" + +S = "${WORKDIR}/git" + +CACHED_CONFIGUREVARS = "ac_cv_file__usr_include_linux_vm_sockets_h=true" + +do_install() { + install -d ${D}/var/lib/hyper/ + + install -m644 ${S}/build/hyper-initrd.img ${D}/var/lib/hyper/ + install -m644 ${S}/build/arch/x86_64/kernel ${D}/var/lib/hyper/ +} + +FILES_${PN} += "/var/lib/hyper" -- cgit v1.2.3-54-g00ecf