Bug 9325 - [meta-swupd] Copy only required bundle contents, rather than copying the entire mega image and then pruning unwanted files
Summary: [meta-swupd] Copy only required bundle contents, rather than copying the enti...
Status: RESOLVED FIXED
Alias: None
Product: Other YP Layers
Classification: Build System, Metadata & Runtime
Component: meta-swupd (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium enhancement
Target Milestone: 2.2 M1
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-03-22 15:46 UTC by Joshua Lock
Modified: 2016-06-01 16:45 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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