Skip to contentSkip to conversation

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

PATCH Applied Christos Gavros 3 participants 8 messages May 20, 2025 – May 27, 2025 1 message not in the archive

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 v5 1/1 ref-manual/variables.rst: document the INITRAMFS_MAXSIZE variable

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

---
v4->v5
* add Reviewed-by: Quentin Schulz <[email protected]>

---
 documentation/ref-manual/variables.rst | 14 ++++++++++++++
 1 file changed, 14 insertions(+)
documentation/ref-manual/variables.rst +14 -0
index 643a3e7ae..3962be578 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 :term:`Initramfs` image in Kbytes.
+      The build will fail if the :term:`Initramfs` image size exceeds this value.
+
+      The :term:`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 (e.g. compressed) .
+      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
#2 lore raw

Hi Christos,

Quoted 4 lines · Christos Gavros

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

Quoted 8 lines

---
v4->v5
* add Reviewed-by: Quentin Schulz <[email protected]>

No need to send a new version just for that, the maintainer will (may) add it when applying the patch.

If a new version is necessary because of feedback, then please add the Reviewed-by and other tags when sending the new version.

Thanks!
Quentin

#3 lore raw

Hi,

Quoted 16 lines · Quentin Schulz

Hi Christos,

Quoted 4 lines · Christos Gavros

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

Quoted 8 lines

---
v4->v5
* add Reviewed-by: Quentin Schulz <[email protected]>

Quoted 5 lines

No need to send a new version just for that, the maintainer will (may) add it when applying the patch.

If a new version is necessary because of feedback, then please add the Reviewed-by and other tags when sending the new version.

Indeed, thanks Quentin. :)

Christos, do you plan on working on updating the documentation for IMAGE_ROOTFS_MAXSIZE like we discussed, or are you out of time? Completely fine if you're out of time, I'll handle it later and merge your patch as-is, just let me know.

As a reminder, the idea was to propagate the documentation you wrote for INITRAMFS_MAXSIZE to IMAGE_ROOTFS_MAXSIZE.

Thanks,
Antonin

Signature · 3 lines
Antonin Godard, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
#4 lore raw

hi

thank you Quentin for clarifying!

Antonin , i have already sent a patch for this!
I sent 2 patches together on Saturday.

Br
Christos

#7 lore raw

ooo i see!

I was not aware that i should do it this way!

I should have a look on how to do that.

Br
Christos

#8 lore raw
In reply to Christos Gavros
Quoted 5 lines · Christos Gavros

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

Applied, thanks!

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

      commit: 07bcdddaf71c76cdec186cf0ddd97a47eec54972

Best regards,

Signature · 1 line
Antonin Godard <[email protected]>