diff options
Diffstat (limited to 'meta-unit-core/recipes-core/images')
3 files changed, 54 insertions, 0 deletions
diff --git a/meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb b/meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb new file mode 100644 index 0000000..7c664aa --- /dev/null +++ b/meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb @@ -0,0 +1,31 @@ +SUMMARY = "Initramfs to boot a fully-featured rootfs" +DESCRIPTION = "Small initramfs that contains udev and init to find the real rootfs" +LICENSE = "MIT" + +inherit image + +INITRAMFS_SCRIPTS ?= "\ + initramfs-module-debug \ + initramfs-module-udev \ + initramfs-module-kmod \ +" + +PACKAGE_INSTALL = "\ + ${INITRAMFS_SCRIPTS} \ + ${VIRTUAL-RUNTIME_base-utils} \ + base-passwd \ +" + +# Ensure the initramfs only contains the bare minimum +IMAGE_FEATURES = "" +IMAGE_LINGUAS = "" + +# Don't allow the initramfs to contain a kernel, as kernel modules will depend +# on the kernel image. +PACKAGE_EXCLUDE = "kernel-image-*" + +IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}" +IMAGE_FSTYPES:remove:rpi = "wic.zst" +IMAGE_NAME_SUFFIX ?= "" +IMAGE_ROOTFS_SIZE = "24576" +IMAGE_ROOTFS_EXTRA_SPACE = "0" diff --git a/meta-unit-core/recipes-core/images/core-image-unit.bb b/meta-unit-core/recipes-core/images/core-image-unit.bb new file mode 100644 index 0000000..8dea4ce --- /dev/null +++ b/meta-unit-core/recipes-core/images/core-image-unit.bb @@ -0,0 +1,7 @@ +SUMMARY = "Unit image" + +LICENSE = "MIT" + +inherit fix-unitexe-home-dir-ownership + +require unit-image-base.inc diff --git a/meta-unit-core/recipes-core/images/unit-image-base.inc b/meta-unit-core/recipes-core/images/unit-image-base.inc new file mode 100644 index 0000000..5ff6c4d --- /dev/null +++ b/meta-unit-core/recipes-core/images/unit-image-base.inc @@ -0,0 +1,16 @@ +inherit core-image +inherit image-buildinfo + +IMAGE_FEATURES[validitems] += "boot-splash" +IMAGE_FEATURES[validitems] += "observability" + +IMAGE_INSTALL:append = " packagegroup-unit-networking" +IMAGE_INSTALL:append = " packagegroup-unit-system" +IMAGE_INSTALL:append = " packagegroup-unit-systemd" +IMAGE_INSTALL:append = " packagegroup-unit-users" +IMAGE_INSTALL:append = " packagegroup-unit-utils" + +# Allow for 4GB of extra space for misc. purposes (ex. container image storage) +IMAGE_ROOTFS_EXTRA_SPACE = "4194304" + +IMAGE_FEATURES:append = " splash" |
