From 2df457033ba4f89c7d70a8b9a3638882c84d8fe7 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Tue, 17 Jan 2012 10:04:32 -0600 Subject: documentation/poky-ref-manual/ref-variables.xml: updates to rootfs variables I made another pass over the variables that affect the root filesystem size generation. The changes are based on review feedback from both Saul and Joshua. (From yocto-docs rev: ccd569d7e464a219a1a3ff9b063e431ba3c946de) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- documentation/poky-ref-manual/ref-variables.xml | 40 ++++++++++++++++++++----- 1 file changed, 32 insertions(+), 8 deletions(-) (limited to 'documentation') diff --git a/documentation/poky-ref-manual/ref-variables.xml b/documentation/poky-ref-manual/ref-variables.xml index 128f27dafd..305ffd1480 100644 --- a/documentation/poky-ref-manual/ref-variables.xml +++ b/documentation/poky-ref-manual/ref-variables.xml @@ -513,11 +513,21 @@ IMAGE_OVERHEAD_FACTOR - Defines a multiplier that the build system might apply to the initial image - size to create free disk space in the image as overhead. + Defines a multiplier that the build system applies to the initial image + size for cases when the multiplier times the returned disk usage value + for the image is greater than the sum of + IMAGE_ROOTFS_SIZE + and + IMAGE_ROOTFS_EXTRA_SPACE. + The result of the multiplier applied to the initial image size creates + free disk space in the image as overhead. By default, the build process uses a multiplier of 1.3 for this variable. This default value results in 30% free disk space added to the image when this - method is used to determine the final generated image size. + method is used to determine the final generated image size. + You should be aware that post install scripts and the package management + system uses disk space inside this overhead area. + Consequently, the multiplier does not produce an image with + all the theoretical free disk space. See IMAGE_ROOTFS_SIZE for information on how the build system determines the overall image size. @@ -576,17 +586,31 @@ Programatically, the build system determines the final size of the generated image as follows: - if (du * overhead) < IMAGE_ROOTFS_SIZE: - IMAGE_ROOTFS_SIZE = IMAGE_ROOTFS_SIZE + xspace + if (image-du * overhead) < rootfs-size: + internal-rootfs-size = rootfs-size + xspace else: - IMAGE_ROOTFS_SIZE = (du * overhead) + xspace + internal-rootfs-size = (image-du * overhead) + xspace + + where: + + image-du = Returned value of the du command on + the image. + + overhead = IMAGE_OVERHEAD_FACTOR + + rootfs-size = IMAGE_ROOTFS_SIZE + + internal-rootfs-size = Initial root filesystem + size before any modifications. + + xspace = IMAGE_ROOTFS_EXTRA_SPACE - In the above example, overhead is defined by the + -- cgit v1.2.3-54-g00ecf