Bug 2246 - Doesn't build genext2fs when making core-image-minimal
Summary: Doesn't build genext2fs when making core-image-minimal
Status: RESOLVED FIXED
Alias: None
Product: Meta-yocto
Classification: Build System, Metadata & Runtime
Component: meta-yocto (show other bugs)
Version: 1.1.1
Hardware: x86 Multiple
: Medium normal
Target Milestone: 1.1.2
Assignee: Saul Wold
QA Contact:
URL:
Whiteboard: patch submitted (May 4)
Depends on:
Blocks:
 
Reported: 2012-04-05 11:49 UTC by Ross Burton
Modified: 2012-05-08 18:27 UTC (History)
4 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 Ross Burton 2012-04-05 11:49:38 UTC
Poky from git, edison branch.  MACHINE=atom-pc and IMAGE_FSTYPES=live.

Building core-image-minimal fails in do_rootfs(): line 127: genext2fs: command not found.  Indeed, building genext2fs-native will then allow core-image-minimal to succeed.
Comment 1 Richard Purdie 2012-04-05 12:11:45 UTC
Just as a note for this bug, someone needs to test this against master. The image handling code did get refactored between edison and master so its possible we did fix this but I'm not sure. It should be possible to test just looking at the task graph (-g option to bitbake).
Comment 2 Saul Wold 2012-04-05 23:00:31 UTC
I did a quick check with the -g option and found the following for edison:

grep -r genext2fs-native *.dot | grep -v dot:\"ge
next2fs
task-depends.dot:"core-image-minimal.do_rootfs" -> "genext2fs-native.do_populate_sysroot"
task-depends.dot:"core-image-minimal.do_rootfs" -> "genext2fs-native.do_package_write_rpm"
task-depends.dot:"core-image-minimal.do_build" -> "genext2fs-native.do_package_write"
task-depends.dot:"core-image-minimal-initramfs.do_rootfs" -> "genext2fs-native.do_populate_sysroot"
task-depends.dot:"core-image-minimal-initramfs.do_rootfs" -> "genext2fs-native.do_package_write_rpm"

I also checked with a full build and was not able to reproduce this issue, genext2fs built correctly.

Default edison with the following cmd line:

 MACHINE=atom-pc IMAGE_FSTYPES=live bitbake core-image-minimal

I used the edison-6.0.1.final tag.

It is working against 1.2 master also.
Comment 3 Richard Purdie 2012-04-06 15:18:25 UTC
You can't set IMAGE_FSTYPES from the commandline by default for a start...
Comment 4 Saul Wold 2012-04-06 16:57:00 UTC
Then indeed just setting IMAGE_FSTYPES in local.conf with edison will result in a failure to build genext2fs, when building a live image with 1.1.1, both ext3 and live need to be specified on the IMAGE_FSTYPES list to get the correct dependencies.

This is fixed correctly in the image_types.bbclass file where it looks for live and adds ext3 to the list if it does not already exist.
Comment 5 Darren Hart 2012-05-01 15:13:30 UTC
So is a WILLNOTFIX (workaround available) or is this to be targeted for another edison point release?
Comment 6 Richard Purdie 2012-05-01 15:25:41 UTC
This should be straight forward to fix on the edison branch so I'm leaning towards fixing it