Skip to contentSkip to conversation

ref-manual/variables.rst: expand IMAGE_OVERHEAD_FACTOR glossary entry

PATCH Superseded [email protected] 2 participants 2 messages Sep 1, 2025

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ref-manual/variables.rst: expand IMAGE_OVERHEAD_FACTOR glossary entry

From: Joao Marcos Costa <[email protected]>

There's a (second) overhead factor applied in images generated with Wic, and this is already documented in the .wks reference. However, the IMAGE_OVERHEAD_FACTOR entry does not mention it, and by looking at the partition sizes (e.g. with parted) one may find it confusing that they don't match with the expected rootfs size (e.g. in a scenario where the extra space is "0" and IMAGE_OVERHEAD_FACTOR="1.0").

This second overhead is already documented, though:
https://docs.yoctoproject.org/ref-manual/kickstart.html#command-part-or-partition

Mention the '--overhead-factor' option in the glossary entry and add a reference to the wks documentation.

---
 documentation/ref-manual/variables.rst | 5 +++++
 1 file changed, 5 insertions(+)
documentation/ref-manual/variables.rst +5 -0
index d559899c6..b7fd1cc5e 100644
@@ -4166,6 +4166,11 @@ system and gives an overview of their function and contents.
       added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
       variable.
 
+      When using Wic tool, beware that a second overhead factor is also applied.
+      This overhead value is defined by the ``--overhead-factor`` option, which
+      defaults to "1.3" when omitted. See the ":doc:`/ref-manual/kickstart`"
+      (Command: part or partition) chapter for details.
+
    :term:`IMAGE_PKGTYPE`
       Defines the package type (i.e. DEB, RPM or IPK) used by the
       OpenEmbedded build system. The variable is defined appropriately by
Signature · 1 line
2.47.0
Reviewed-by on v2 1/1
#1 lore raw

Hi João,

Quoted 25 lines · On 9/1/25 5:35 PM, [email protected] wrote:

From: Joao Marcos Costa <[email protected]>

There's a (second) overhead factor applied in images generated with Wic, and this is already documented in the .wks reference. However, the IMAGE_OVERHEAD_FACTOR entry does not mention it, and by looking at the partition sizes (e.g. with parted) one may find it confusing that they don't match with the expected rootfs size (e.g. in a scenario where the extra space is "0" and IMAGE_OVERHEAD_FACTOR="1.0").

This second overhead is already documented, though:
https://docs.yoctoproject.org/ref-manual/kickstart.html#command-part-or-partition

Mention the '--overhead-factor' option in the glossary entry and add a reference to the wks documentation.

---
  documentation/ref-manual/variables.rst | 5 +++++
  1 file changed, 5 insertions(+)
documentation/ref-manual/variables.rst +0 -0
index d559899c6..b7fd1cc5e 100644

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

Quoted 8 lines
documentation/ref-manual/variables.rst +5 -0
@@ -4166,6 +4166,11 @@ system and gives an overview of their function and contents.
        added to the image by using the :term:`IMAGE_ROOTFS_EXTRA_SPACE`
        variable.
 
+      When using Wic tool, beware that a second overhead factor is also applied.
+      This overhead value is defined by the ``--overhead-factor`` option, which
+      defaults to "1.3" when omitted. See the ":doc:`/ref-manual/kickstart`"
+      (Command: part or partition) chapter for details.
+

"""
See :ref:ref-manual/kickstart:command: part or partition chapter in the OpenEmbedded Kickstart reference section. """

or even

"""
See :ref:ref-manual/kickstart:command: part or partition chapter in :doc:/ref-manual/kickstart. """

if you prefer.

Otherwise, looks fine to me, so with that:

Thanks!
Quentin