summaryrefslogtreecommitdiff
path: root/meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb
diff options
context:
space:
mode:
authorunitexe <unitexe70@gmail.com>2026-04-19 02:36:19 -0500
committerunitexe <unitexe70@gmail.com>2026-10-01 11:23:50 -0500
commit37d7fa94c5828cb3d151c6eb287a56e69e12555c (patch)
tree2257e0c44712f30dc3606ea9dd03fa2d66eb0597 /meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb
parentc2b424cacda689dc9392ff0869a80a04fce6dd46 (diff)
Move images from recipes-unit/images to recipes-core/images
Diffstat (limited to 'meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb')
-rw-r--r--meta-unit-core/recipes-core/images/core-image-unit-initramfs.bb31
1 files changed, 31 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"