Add support for rootfs post-processing in l-m-c
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
LAVA Dispatcher |
Won't Fix
|
High
|
Unassigned | ||
Linaro Image Tools |
In Progress
|
High
|
Fathi Boudra |
Bug Description
It is currently tedious to customize the produced images each time they are created. This deters developers from changing and testing images often, especially when they want to use images for development or complicated testing. Needed customizations include everything from installing packages to adding configuration files (ssh, network, editors).
A simple but effective solution is for l-m-c to allow the execution of a user shell script after the rootfs has been populated. l-m-c should pass all necessary information to the script (location of rootfs, default user etc). The script can then do whatever it wants to customize the image according to each user's needs (copy files into the rootfs, chroot and install packages etc).
Related branches
- Loïc Minier (community): Approve
- Alexander Sack: Pending requested
- Alexandros Frantzis: Pending requested
- Tom Gall: Pending requested
-
Diff: 63 lines (+16/-1)3 files modifiedlinaro-media-create (+9/-1)
linaro_image_tools/media_create/__init__.py (+3/-0)
linaro_image_tools/media_create/rootfs.py (+4/-0)
- Alexandros Frantzis: Pending requested
- Ricardo Salveti: Pending requested
- Alexander Sack: Pending requested
- linaro-image-tools maintainers: Pending requested
-
Diff: 138 lines (+48/-20)4 files modifiedlinaro-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)
- linaro-image-tools maintainers: Pending requested
-
Diff: 254 lines (+135/-35)4 files modifiedlinaro-media-create (+2/-1)
linaro_image_tools/media_create/__init__.py (+9/-1)
linaro_image_tools/media_create/chroot_utils.py (+45/-16)
linaro_image_tools/media_create/tests/test_media_create.py (+79/-17)
Changed in linaro-image-tools: | |
status: | New → Triaged |
milestone: | none → 2011.10 |
Changed in linaro-image-tools: | |
status: | Triaged → In Progress |
Changed in linaro-image-tools: | |
milestone: | 2011.11 → 2011.12 |
Changed in linaro-image-tools: | |
milestone: | 2011.12 → backlog |
Changed in linaro-image-tools: | |
milestone: | backlog → none |
Changed in linaro-image-tools: | |
status: | In Progress → Triaged |
Changed in linaro-image-tools: | |
milestone: | none → 2012.02 |
status: | Triaged → In Progress |
no longer affects: | linaro-ubuntu |
Changed in linaro-image-tools: | |
milestone: | 2012.02 → 2012.03 |
Changed in linaro-image-tools: | |
assignee: | Mattias Backman (mabac) → nobody |
Changed in linaro-image-tools: | |
assignee: | nobody → Данило Шеган (danilo) |
Changed in lava-dispatcher: | |
milestone: | 2012.03 → 2012.04 |
Changed in linaro-image-tools: | |
milestone: | 2012.03 → 2012.04 |
Changed in lava-dispatcher: | |
milestone: | 2012.04 → 2012.05 |
Changed in linaro-image-tools: | |
milestone: | 2012.04 → 2012.05 |
Changed in linaro-image-tools: | |
assignee: | nobody → Fathi Boudra (fboudra) |
Changed in lava-dispatcher: | |
milestone: | 2012.05 → none |
Changed in linaro-image-tools: | |
milestone: | backlog → none |
Changed in lava-dispatcher: | |
status: | Triaged → Won't Fix |
Changed in linaro-image-tools: | |
status: | In Progress → Won't Fix |
Changed in linaro-image-tools: | |
status: | Won't Fix → In Progress |
This is a shell script I use which will loop-mount an image or device (e.g. MMC) and either run a command a command in it or spawn your default shell. I use it like this:
loop-mnt-do -o $((106496*512)) panda.img
(106496 is the start sector of the second partition as returned by "file panda.img")