Bug 9325

Summary: [meta-swupd] Copy only required bundle contents, rather than copying the entire mega image and then pruning unwanted files
Product: [Build System, Metadata & Runtime] Other YP Layers Reporter: Joshua Lock <joshuagloe>
Component: meta-swupdAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: igor.stoppa, poky.bs.watcher, poky.watcher
Version: 2.2   
Target Milestone: 2.2 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Joshua Lock 2016-03-22 15:46:49 UTC
It's more efficient to copy only the files required by the bundle, rather than copying the entire mega image and then pruning unwanted files afterwards. Particular in the extreme case of a large mega image with several small bundles.
Comment 1 Joshua Lock 2016-04-19 14:33:27 UTC
I have a patch to implement this and am in the process of testing it.
Comment 2 Igor Stoppa 2016-05-11 11:18:49 UTC
Any update?
Comment 3 Joshua Lock 2016-05-11 18:51:32 UTC
(In reply to comment #2)
> Any update?

I have a partial implementation which results in `swupd verify` failures for directories on the target. I need to pick this work back up some time soon, probably next week.
Comment 4 Joshua Lock 2016-05-19 22:22:36 UTC
As part of the work on #9599 I removed most of the places where we copy the mega image rootfs and then prune unwanted contents. I've added a follow on patch to that work which removes the final user of that pattern and the two functions which support it.

I expect to merge this some time next week after further testing.
Comment 5 Joshua Lock 2016-06-01 16:45:52 UTC
With the rearchitecture of swupd-image.bbclass that just landed in meta-swupd master there are now fewer copies made, the final copy/prune usages were removed in:

http://git.yoctoproject.org/cgit/cgit.cgi/meta-swupd/commit/?id=5e6ef822c20a34b2db72cc626cf442dac97f5bcc