| Summary: | wic: allow wic to update a kernel or bootloader in a disk image | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Stephano Cetola <stephano> |
| Component: | Scripts and Tools | Assignee: | Ed Bartosh <eduard.bartosh> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | Medium+ | CC: | brian.avery, california.l.sullivan, ross.burton, sgw, stephano |
| Version: | 2.2 | ||
| Target Milestone: | 2.4 M1 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Stephano Cetola
2017-03-31 18:47:42 UTC
As boot partition is usually msdos/vfat type it should be possible to use mtools https://www.gnu.org/software/mtools/manual/mtools.html for this task. This would allow users to update files on boot vfat partition without mounting the image. here is a list of new wic commands I ended up with:
1. copy files or directories to/from vfat partition of the image:
wic copy <src> <dst>
- copy file or directory to the image:
wic cp [-r] <local path> <image path>:<partition number>/<path>
- copy file or directory from the image:
wic cp [-r] <image path>:<partition number>/<path> <local path>
2. list partitions:
wic ls <image path>
3. list files on vfat partition:
wic ls <image path>:<partition number>/<path>
4. remove files/directories from vfat partition:
wic rm [-r] <image path>:<partition number>/<path>
Thoughts?
Implemented 'wic ls': http://lists.openembedded.org/pipermail/openembedded-core/2017-May/136678.html implemented 'wic cp': http://lists.openembedded.org/pipermail/openembedded-core/2017-May/137118.html implemented 'wic rm': http://lists.openembedded.org/pipermail/openembedded-core/2017-June/137500.html merged to poky master. commit id: 1de1a34a64d2e34d438f6d24adbd70a62366dab7 |