From cfb803391031a0b7f5971df14d1616bc3e3d8c07 Mon Sep 17 00:00:00 2001 From: Bruce Ashfield Date: Wed, 2 Oct 2013 09:21:44 -0400 Subject: openstack-controller-deploy: cirros simple guest support It is often desireable to test a OpenStack controller and compute node pair with a small, well known image. The cirros simple cloud image fits this bill. To enable the inclusion of this image, add: IMAGE_INSTALL_append = " cirros-guest-image" to local.conf (or relevant configuration file). Once the build completes, the cirros image can be found in /root/images/ Signed-off-by: Bruce Ashfield --- .../recipes-extended/guest-images/cirros_0.3.0.bb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 meta-openstack-controller-deploy/recipes-extended/guest-images/cirros_0.3.0.bb diff --git a/meta-openstack-controller-deploy/recipes-extended/guest-images/cirros_0.3.0.bb b/meta-openstack-controller-deploy/recipes-extended/guest-images/cirros_0.3.0.bb new file mode 100644 index 00000000..c3fad1f2 --- /dev/null +++ b/meta-openstack-controller-deploy/recipes-extended/guest-images/cirros_0.3.0.bb @@ -0,0 +1,19 @@ +SUMMARY = "An image containing the cirros cloud guest" +DESCRIPTION = "CirrOS a tiny cloud guest" +HOMEPAGE = "https://launchpad.net/cirros" + +LICENSE="GPLv2" + +SRC_URI = "https://launchpad.net/cirros/trunk/0.3.0/+download/${PN}-${PV}-x86_64-disk.img" +SRC_URI[md5sum] = "5005e29ebadd0644af9008657fead245" +SRC_URI[sha256sum] = "4820b23e33f388f3b95766fb67a6a211b111ab8349f41e2274b471bd288be21a" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/GPL-2.0;md5=801f80980d171dd6425610833a22dbe6" + + +do_install() { + install -d ${D}/root/images + install -m 755 ${WORKDIR}/${PN}-${PV}-x86_64-disk.img ${D}/root/images +} + +PACKAGES = "cirros-guest-image" +FILES_cirros-guest-image = "/root/images/*" -- cgit