Bug 2601 - [Hob2] Base image needs to be used rather than re-creating it
Summary: [Hob2] Base image needs to be used rather than re-creating it
Status: VERIFIED FIXED
Alias: None
Product: Hob
Classification: Build System, Metadata & Runtime
Component: hob (show other bugs)
Version: 1.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 1.4 M2
Assignee: Cristiana Voicu
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-06-13 14:31 UTC by Paul Eggleton
Modified: 2013-03-14 07:47 UTC (History)
10 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Eggleton 2012-06-13 14:31:56 UTC
If you select a base image in Hob which contains e.g. post-processing customisations, these do not get used. It seems that the base image is only used to determine the initial list of packages to be included which can be adjusted by the user, and then these selections are built as a brand new image. Ideally what should occur is that we take a copy of the selected base image and then override IMAGE_INSTALL to include the packages the user has selected, thus preserving any other functionality in the image recipe.
Comment 1 Alexandru Damian 2012-09-11 08:18:23 UTC
This is a feature, not a bug, right ?
Comment 2 Paul Eggleton 2012-09-11 08:30:24 UTC
It depends upon how you look at it. I imagine that many users would not expect the current behaviour.
Comment 3 Richard Purdie 2012-10-01 12:25:50 UTC
Just to detail this a little bit more, the issue is that currently the system uses hob-image.bb as a base. Instead we need to take the original image recipe selected then change the included packages to match the user selection so for example, core-image-minimal has:

"""
IMAGE_ROOTFS_SIZE = "8192"

# remove not needed ipkg informations
ROOTFS_POSTPROCESS_COMMAND += "remove_packaging_data_files ; "
"""

and these should be included in any customised image based on core-image-minimal.
Comment 4 Jason Wessel 2012-10-11 22:06:43 UTC
It is also the case that things like the the IMAGE_FEATURES do not get picked up from the local.conf for example.  After running the hob and saving a template anything that was set in the IMAGE_FEATURES is completely gone, which is not entirely useful.
Comment 5 Cristiana Voicu 2012-12-17 09:19:32 UTC
merged to master
Comment 6 Andreea Brandusa Proca 2013-03-14 07:47:26 UTC
Verified in master:4da406cd50cf02a63ed76810a670aba1eb561c79.