Bug 7664 - Cannot create empty image
Summary: Cannot create empty image
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.8
Hardware: x86 Multiple
: Medium minor
Target Milestone: 2.0
Assignee: Alex Franco
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-04-27 13:54 UTC by Paul Eggleton
Modified: 2015-10-19 19:15 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: Regression (Used to work)
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 Paul Eggleton 2015-04-27 13:54:03 UTC
While attempting to re-test for bug 6478 I was trying to create an empty image, but unfortunately it seems that's no longer possible - it doesn't matter whether I am using rpm, deb or ipk, I get a different error with a traceback with each of them. Here's my test image:

------------- snip -------------
inherit image

IMAGE_LINGUAS = ""
PACKAGE_INSTALL = ""
------------- snip -------------
Comment 1 Alex Franco 2015-08-22 01:17:56 UTC
Got it working with deb and ipk, soon to have this working with rpm. Currently I get this error on do_rootfs when trying to build an empty image using rpm:

ERROR: Unable to install packages. Command '/home/me/poky/build/tmp/sysroots/x86_64-linux/usr/bin/smart --log-level=warning --data-dir=/home/me/poky/build/tmp/work/qemux86-poky-linux/core-image-empty/1.0-r0/rootfs/var/lib/smart install -y ' returned 1:
error: no package(s) given

So this should not take much longer now.
Comment 2 Alex Franco 2015-08-26 22:25:18 UTC
sent patches to OE-core mailing list with title "Empty-image functionality"
Comment 3 Alex Franco 2015-09-22 19:55:48 UTC
A new change needs to happen: the image will move to meta-selftest/recipes-test/images/
Comment 4 Alex Franco 2015-10-07 00:05:50 UTC
the move of the image to meta-selftest/recipes-test/images/ has been merged as per be13cdb5f616927e611f61b3ee03fce44e4f4b68, the image is in the right place.

The image should probably be renamed as "empty-image" instead of "core-image-empty"...
Comment 5 Alex Franco 2015-10-07 00:14:58 UTC
Empty image recipe rename patch was sent and is waiting on merge, I think this bug can be closed now as that isn't strictly necessary to consider this issue fixed, as with the test case that should also be created...
Comment 6 Ross Burton 2015-10-19 19:15:40 UTC
Image rename merged into 6d47b3c277a3bb0f031084c24903a3412d7f4550.