diff options
-rw-r--r-- | meta/recipes-extended/images/wic-image-minimal.bb | 14 | ||||
-rw-r--r-- | meta/recipes-extended/images/wic-image-minimal.wks | 10 |
2 files changed, 24 insertions, 0 deletions
diff --git a/meta/recipes-extended/images/wic-image-minimal.bb b/meta/recipes-extended/images/wic-image-minimal.bb new file mode 100644 index 0000000000..073c569fe2 --- /dev/null +++ b/meta/recipes-extended/images/wic-image-minimal.bb | |||
@@ -0,0 +1,14 @@ | |||
1 | SUMMARY = "An example of partitioned image." | ||
2 | |||
3 | IMAGE_INSTALL = "packagegroup-core-boot ${ROOTFS_PKGMANAGE_BOOTSTRAP}" | ||
4 | |||
5 | IMAGE_FSTYPES = "wic.bz2" | ||
6 | RM_OLD_IMAGE = "1" | ||
7 | |||
8 | # core-image-minimal is referenced in .wks, so we need its rootfs | ||
9 | # to be ready before our rootfs | ||
10 | do_rootfs[depends] += "core-image-minimal:do_rootfs" | ||
11 | |||
12 | IMAGE_ROOTFS_EXTRA_SPACE = "2000" | ||
13 | |||
14 | inherit image | ||
diff --git a/meta/recipes-extended/images/wic-image-minimal.wks b/meta/recipes-extended/images/wic-image-minimal.wks new file mode 100644 index 0000000000..29cd8f2c8a --- /dev/null +++ b/meta/recipes-extended/images/wic-image-minimal.wks | |||
@@ -0,0 +1,10 @@ | |||
1 | # short-description: Example of partitioned image with complex layout | ||
2 | # long-description: This image contains boot partition and 3 rootfs partitions | ||
3 | # created from core-image-minimal and wic-image-minimal image recipes. | ||
4 | |||
5 | part /boot --source bootimg-pcbios --ondisk sda --label boot --active --align 1024 | ||
6 | part / --source rootfs --ondisk sda --fstype=ext2 --label platform --align 1024 | ||
7 | part /core --source rootfs --rootfs-dir=core-image-minimal --ondisk sda --fstype=ext2 --label core --align 1024 | ||
8 | part /backup --source rootfs --rootfs-dir=wic-image-minimal --ondisk sda --fstype=ext2 --label backup --align 1024 | ||
9 | |||
10 | bootloader --timeout=0 --append="rootwait console=tty0" | ||