Merge lp://staging/~qzhang/lava-dispatcher/inject-kernel into lp://staging/lava-dispatcher
Status: | Work in progress |
---|---|
Proposed branch: | lp://staging/~qzhang/lava-dispatcher/inject-kernel |
Merge into: | lp://staging/lava-dispatcher |
Diff against target: |
376 lines (+225/-22) 4 files modified
doc/android-new-kernel.json (+37/-0) doc/lava-new-kernel.json (+30/-0) lava_dispatcher/actions/android_deploy.py (+28/-7) lava_dispatcher/actions/deploy.py (+130/-15) |
To merge this branch: | bzr merge lp://staging/~qzhang/lava-dispatcher/inject-kernel |
Related bugs: | |
Related blueprints: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Spring Zhang (community) | Needs Resubmitting | ||
Paul Larson (community) | Needs Information | ||
Review via email:
|
Description of the change
Finish mockup.
1. Use populate_boot() in linaro-media-tool to recreate boot partition with updated kernel.
2. For tarball packages, now it only extract it to testrootfs simply, so it needs a right path in tarball.
3. Lack of some error detection to verify if new kernel is updated.
Still need an integration test, I will do it.
1. Move recreating testboot partition command to master image.
2. Fix a bug #821385
3. Add an example json file in doc/
4. Tested and get a new kernel with the json file on doc/lava-
Add support for Android part, it requires the pkg parameter to be a bz2 tarball and it will be extracted to / directly, then recreate uInitrd, so the package should consider its inner structure. Also added an example json file.
The code is not tested for I don't have an available android board.
123 + elif filesuffix in ["gz", "tgz"]:
124 + cmd = ('wget -qO- %s |tar --numeric-owner -C /mnt/root -xzf -'
125 + % pkg_url)
Is there a reason why we want this here? What would we use it for?
We should make sure to include an example of how to use this, and also in the documentation.
Have you tested this with a kernel built by the infrastructure team? Which one?