Bug 5957

Summary: Image not correctly created if 'ptest-pkgs' is in IMAGE_FEATURES
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Chen Qi <Qi.Chen>
Component: coreAssignee: Robert Yang <liezhi.yang>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: bluelightning, jessica.zhang, meta.mr.watcher, meta.watcher, sgw
Version: 1.5   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Chen Qi 2014-03-13 05:37:36 UTC
How to reproduce?
1. Add 'ptest-pkgs' to EXTRA_IMAGE_FEATURES in local.conf
2. bitbake core-image-minimal
3. Either trying to start the image or loop mounting it for examination would reveal the bug.

The odd thing is, if 'ptest-pkgs' is not in IMAGE_FEATURES, everything would be fine.

//Chen Qi
Comment 1 Paul Eggleton 2014-03-13 10:49:35 UTC
I can't quite figure out from this report - what is the actual failure observed?
Comment 2 Saul Wold 2014-03-13 14:47:40 UTC
Can you please provide more information
Comment 3 Chen Qi 2014-03-14 01:28:02 UTC
The image cannot correctly start up. A lot of files are missing, including the whole /etc directory.

//Chen Qi
Comment 4 Robert Yang 2014-03-19 08:42:50 UTC
This is because there is no inode left, we can change EXTRA_IMAGECMD_ext2 ?= "-i 8192" to "-i 4096" to fix it, or use a higher IMAGE_OVERHEAD_FACTOR.

Another problem is that there is no error information in the log.do_rootfs, there are error messages when I manually run the mke2fs commands.