Skip to contentSkip to conversation

ref-manual/variables.rst: document the INITRAMFS_MAXSIZE variable

PATCH Superseded Christos Gavros 2 participants 2 messages May 17, 2025 – May 19, 2025 1 message not in the archive

v3 of 5 Superseded Latest is v5 →

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw

PATCH v3 1/1 ref-manual/variables.rst: document the INITRAMFS_MAXSIZE variable

This variable specifies the maximum allowed size of the initramfs image in kilobytes. Fixes [YOCTO #15797]

CC Yoann Congal <[email protected]>
CC Randy MacLeod <[email protected]>
CC Antonin Godard <[email protected]>
CC Quentin Schulz <[email protected]>

---
v2->v3
* the text is wrapped in less than 80 characters
* the syntax for hyperinks is used for variables
* the syntax for path of bitbake.conf is changed
* the calculation steps are moved in IMAGE_ROOTFS_MAXSIZE variable

---
 documentation/ref-manual/variables.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
documentation/ref-manual/variables.rst +14 -0
index d17f81036..33934c8ff 100644
@@ -4708,6 +4708,20 @@ system and gives an overview of their function and contents.
       See the :term:`MACHINE` variable for additional
       information.
 
+   :term:`INITRAMFS_MAXSIZE`
+      Defines the maximum allowed size of the initramfs image in kilobytes.
+      The build will fail if the initramfs image size exceeds this value.
+
+      The initramfs image size undergoes several calculation steps before being
+      compared to :term:`INITRAMFS_MAXSIZE`.
+      These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
+      and are described in detail in that entry.
+
+      Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
+      and is independent of the final image type.
+      A default value for :term:`INITRAMFS_MAXSIZE` is set in
+      :oe_git:`meta/conf/bitbake.conf </openembedded-core/tree/meta/conf/bitbake.conf>`.
+
    :term:`INITRAMFS_MULTICONFIG`
       Defines the multiconfig to create a multiconfig dependency to be used by
       the :ref:`ref-classes-kernel` class.
Signature · 1 line
2.34.1
Reviewed-by on v3 1/1
#2 lore raw

Hi Christos,

Quoted 24 lines · Christos Gavros via lists.yoctoproject.org

This variable specifies the maximum allowed size of the initramfs image in kilobytes. Fixes [YOCTO #15797]

CC Yoann Congal <[email protected]>
CC Randy MacLeod <[email protected]>
CC Antonin Godard <[email protected]>
CC Quentin Schulz <[email protected]>

---
v2->v3
* the text is wrapped in less than 80 characters
* the syntax for hyperinks is used for variables
* the syntax for path of bitbake.conf is changed
* the calculation steps are moved in IMAGE_ROOTFS_MAXSIZE variable

---
  documentation/ref-manual/variables.rst | 14 ++++++++++++++
  1 file changed, 14 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index d17f81036..33934c8ff 100644

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 4712

Quoted 5 lines
documentation/ref-manual/variables.rst +2 -0
@@ -4708,6 +4708,20 @@ system and gives an overview of their function and contents.
        See the :term:`MACHINE` variable for additional
        information.
 
+   :term:`INITRAMFS_MAXSIZE`
+      Defines the maximum allowed size of the initramfs image in kilobytes.

s/kilobytes/Kbytes/ to match IMAGE_ROOTFS_MAXSIZE (though I'm wondering if we shouldn't rather say KiB to highlight those are 1024B and not 1000B).

Replace all
initramfs
with
:term:Initramfs

documentation/ref-manual/variables.rst system and gives an overview of their function and contents. · line 4721

Quoted 9 lines
documentation/ref-manual/variables.rst +9 -0
+      The build will fail if the initramfs image size exceeds this value.
+
+      The initramfs image size undergoes several calculation steps before being
+      compared to :term:`INITRAMFS_MAXSIZE`.
+      These steps are the same as those used for :term:`IMAGE_ROOTFS_MAXSIZE`
+      and are described in detail in that entry.
+
+      Thus, :term:`INITRAMFS_MAXSIZE` is compared with the result of the calculations
+      and is independent of the final image type.

Maybe add "(e.g. compressed)" at the end of the sentence to highlight the typical confusion that will happen?

Looks good to me otherwise!

Thanks!
Quentin