Bug 11279 - wic: honor IMAGE_ROOTFS_EXTRA_SPACE et al
Summary: wic: honor IMAGE_ROOTFS_EXTRA_SPACE et al
Status: NEW
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 5.99
Assignee: Unassigned
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-03-31 18:00 UTC by Stephano Cetola
Modified: 2025-05-01 15:06 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Stephano Cetola 2017-03-31 18:00:42 UTC
There are several variables which can effect the final image. Wic should take these variables into account when creating images. It would be nice if it let the user know it was doing this, list the variables it is using, and give the user a way to override these variables.
Comment 1 Saul Wold 2017-03-31 18:17:23 UTC
In image.bbclass: get_rootfs_size()

    rootfs_alignment = int(d.getVar('IMAGE_ROOTFS_ALIGNMENT'))
    overhead_factor = float(d.getVar('IMAGE_OVERHEAD_FACTOR'))
    rootfs_req_size = int(d.getVar('IMAGE_ROOTFS_SIZE'))
    rootfs_extra_space = eval(d.getVar('IMAGE_ROOTFS_EXTRA_SPACE'))
    rootfs_maxsize = d.getVar('IMAGE_ROOTFS_MAXSIZE')
    image_fstypes = d.getVar('IMAGE_FSTYPES') or ''
    initramfs_fstypes = d.getVar('INITRAMFS_FSTYPES') or ''
    initramfs_maxsize = d.getVar('INITRAMFS_MAXSIZE')

ROOTFS_SIZE gets set with the value of the above function.
Comment 2 Randy MacLeod 2023-10-24 14:24:26 UTC
Bulk move from 4.99 or 0.00 to 5.99
Comment 3 Trevor Woerner 2025-05-01 15:06:28 UTC
could this be a duplicate of https://bugzilla.yoctoproject.org/show_bug.cgi?id=15555 ?