Re: [PATCH] ref-manual/variables.rst: document the INITRAMFS_MAXSIZE variable

Christos Gavros
2025-04-23T19:24:47Z

[-- Attachment #1: Type: text/plain, Size: 894 bytes --]

hi Antonin and Quentin

i had a further look on that.

When initramfs is included in build (INITRAMFS_IMAGE = "core-image-minimal-initramfs" in local.conf)
then the 'IMAGE_ROOTFS' is pointing to build/tmp/work/qemux86_64-poky-linux/core-image-minimal-initramfs/1.0/rootfs.
This directory is approximately 115000kb.
If INITRAMFS_MAXSIZE = "1100000" then the error is generated.
If INITRAMFS_MAXSIZE = "1600000" then the build is ok.
So i think that the INITRAMFS_MAXSIZE refers to the size of the directory and not the final image type.

The condition " if image_fstypes == initramfs_fstypes != ''  and initramfs_maxsize: ", exists
because in the recipe "core-image-minimal-initramfs" there is the assignment IMAGE_FSTYPES = "${INITRAMFS_FSTYPES}".
So the INITRAMFS_MAXSIZE is evaluated only when one of the initramfs recipes is included.

Shall i submit a v2 ?

Br
Christos

[-- Attachment #2: Type: text/html, Size: 1083 bytes --]