Merge lp://staging/~mabac/linaro-image-tools/scripts-hooks into lp://staging/linaro-image-tools/11.11
Status: | Rejected |
---|---|
Rejected by: | Данило Шеган |
Proposed branch: | lp://staging/~mabac/linaro-image-tools/scripts-hooks |
Merge into: | lp://staging/linaro-image-tools/11.11 |
Diff against target: |
138 lines (+48/-20) 4 files modified
linaro-media-create (+2/-1) linaro_image_tools/media_create/__init__.py (+6/-0) linaro_image_tools/media_create/chroot_utils.py (+37/-16) linaro_image_tools/media_create/tests/test_media_create.py (+3/-3) |
To merge this branch: | bzr merge lp://staging/~mabac/linaro-image-tools/scripts-hooks |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alexandros Frantzis | Pending | ||
Ricardo Salveti | Pending | ||
Alexander Sack | Pending | ||
linaro-image-tools maintainers | Pending | ||
Review via email: mp+89889@code.staging.launchpad.net |
Description of the change
Hi,
This branch adds two command line options to linaro-media-create to enable users to customize the behaviour of l-m-c.
--preinstall-
--postinstall
The scripts will be executed in the chroot before and after installing hwpacks.
Thanks,
Mattias
Unmerged revisions
- 487. By Mattias Backman
-
Update call signature in tests.
- 486. By Mattias Backman
-
Add pre and post hwpack install script hooks.
Tested with 2 simple scripts and it worked well.
A few comments:
1. At the preinstall script there's no way to access the hwpack content, because it wasn't yet extracted. This may be useful for people that want to read from hwpack packages or even customize in some way.
2. Would be useful if we could also copy both scripts at the rootfs, as it might help debugging any issues in the future.
3. Would also be useful if we could stamp that the image was customized by a script, like by adding a message via /etc/update-motd.d, so it'd show that info to the user.