Bug 7590

Summary: Avoid running do_rootfs within extensible SDK installation
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Paul Eggleton <bluelightning>
Component: devtools / tool chainAssignee: Paul Eggleton <bluelightning>
Status: VERIFIED FIXED QA Contact: Costin <costin.c.constantin>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, meta.mr.watcher, meta.watcher, Qi.Chen, randy.macleod, ross.burton
Version: 1.8   
Target Milestone: 2.0   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Paul Eggleton 2015-04-09 14:06:27 UTC
The extensible SDK installation process (defined in populate_sdk_ext.bbclass) by default runs bitbake in order to install the sstate cache to the point where you can assemble an image, however at the moment it actually runs do_rootfs which is completely unnecessary. Probably the easiest way to fix this would be to stub out do_rootfs making it a no-op (e.g. by inheriting a class that does this just for this run).
Comment 1 Ross Burton 2015-09-23 16:36:31 UTC
Changing state to Accepted as I can't see the patch.  Chen, if you did send this, can you ping it?
Comment 2 Chen Qi 2015-09-24 02:27:42 UTC
(In reply to comment #1)
> Changing state to Accepted as I can't see the patch.  Chen, if you did send
> this, can you ping it?

I sent one. But it's not correct and I'll rework on this bug.
Thank you for reminding me about this.

Regards,
Chen Qi
Comment 3 Paul Eggleton 2015-10-13 07:27:21 UTC
FYI I've made a fix for this and am testing it now.
Comment 5 Costin 2015-10-22 10:30:47 UTC
Hello,

Tested with latest commit: 505a82673ac2487df5ea343a6422c2fc47018831 on an Ubuntu machine.
Steps performed:
1) ensure having a clean environment (i removed tmp dir)
2) prepare SDK:
bitbake core-image-minimal -c populate_sdk
3) search for any do_rootfs in cooker log:
~/2poky/build/tmp/log/cooker/genericx86$ ls
20151022083315.log
~/2poky/build/tmp/log/cooker/genericx86$ grep rootfs 20151022083315.log

Marking as verified.