From f7069cbfb8f1e8273584221999d0739f1ae173c4 Mon Sep 17 00:00:00 2001 From: Ed Bartosh Date: Mon, 31 Aug 2015 00:14:25 +0300 Subject: wic-image-minimal: add wic image recipe and .wks Added example of recipe and .wks file to create partitioned image. This image is using quite complex partitioning scheme. It uses its own rootfs to populate two partitions in two different ways. It also uses core-image-minimal rootfs to populate another partition. This is how wic reports about artifacts used to create this image: ROOTFS_DIR: tmp/work/qemux86_64-poky-linux/wic-image-minimal/1.0-r0/rootfs ROOTFS_DIR["/core"]: tmp/work/qemux86_64-poky-linux/core-image-minimal/1.0-r0/rootfs ROOTFS_DIR["/backup"]: tmp/work/qemux86_64-poky-linux/wic-image-minimal/1.0-r0/rootfs BOOTIMG_DIR: tmp/sysroots/qemux86-64/usr/share KERNEL_DIR: tmp/deploy/images/qemux86-64 NATIVE_SYSROOT: tmp/sysroots/x86_64-linux Signed-off-by: Ed Bartosh Signed-off-by: Richard Purdie --- meta-selftest/recipes-test/images/wic-image-minimal.bb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 meta-selftest/recipes-test/images/wic-image-minimal.bb (limited to 'meta-selftest/recipes-test/images/wic-image-minimal.bb') diff --git a/meta-selftest/recipes-test/images/wic-image-minimal.bb b/meta-selftest/recipes-test/images/wic-image-minimal.bb new file mode 100644 index 0000000000..073c569fe2 --- /dev/null +++ b/meta-selftest/recipes-test/images/wic-image-minimal.bb @@ -0,0 +1,14 @@ +SUMMARY = "An example of partitioned image." + +IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" + +IMAGE_FSTYPES = "wic.bz2" +RM_OLD_IMAGE = "1" + +# core-image-minimal is referenced in .wks, so we need its rootfs +# to be ready before our rootfs +do_rootfs[depends] += "core-image-minimal:do_rootfs" + +IMAGE_ROOTFS_EXTRA_SPACE = "2000" + +inherit image -- cgit 1.2.3-korg