This is an implementation of new wic subcommand 'wic cp'.
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest11 patches 1 replyIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/11 | wic: add wic_init_parser_cpscripts/ | +16 | 0 replies | |
| 2/11 | wic: add help and usage content for 'wic cp'scripts/ | +62 | 0 replies | |
| 3/11 | wic: add 'wic cp' commandscripts/ scripts/ | +20 | 0 replies | |
| 4/11 | wic: add Disk._prop helperscripts/ | +10 | 0 replies | |
| 5/11 | wic: add mcopy propertyscripts/ | +5 | 0 replies | |
| 6/11 | filemap: change signature of sparse_copy functionscripts/ scripts/ | +13 | 0 replies | |
| 7/11 | filemap: check if dest is written for every blockscripts/ | +7 | 0 replies | |
| 8/11 | filemap: calculate dst size correctlyscripts/ | +5 | 0 replies | |
| 9/11 | wic: add Disk._put_part_image methodscripts/ | +5 | 0 replies | |
| 10/11 | wic: fully implement 'wic cp'scripts/ | +10 | 0 replies | |
| 11/11 | selftest: add test_wic_cp test casemeta/ | +45 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH 00/11] This is an implementation of new wic subcommand 'wic cp'.
Hi,
'wic cp' command copies files and directories to the vfat partition of the wic image.
Here are couple of examples:
Copy file to the root directory of the vfat partition:
$ wic cp test.wks tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
$ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1
Volume in drive : is boot
Volume Serial Number is DB4C-FD4C
Directory for ::/ efi <DIR> 2017-05-24 18:15
loader <DIR> 2017-05-24 18:15
startup nsh 26 2017-05-24 18:15
vmlinuz 6926384 2017-05-24 18:15
test wks 628 2017-05-24 21:22 5 files 6 927 038 bytes
15 677 440 bytes free
Copy directory to the efi subdirectory of the vfat partition:
$ wic cp test tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/efi/
$ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/eti/
Volume in drive : is boot
Volume Serial Number is DB4C-FD4C
Directory for ::/efi . <DIR> 2017-05-24 18:15
.. <DIR> 2017-05-24 18:15
boot <DIR> 2017-05-24 18:15
test <DIR> 2017-05-24 21:27 4 files 0 bytes
15 675 392 bytes free
The patchset also contains fixes for sparse_copy bugs discuvered in the process of working on 'wic cp' functionality.
It also contains test case for 'wic cp' command.
The following changes since commit ae4b01e75618030f3fa0a592c6dffddb2fdab3b5:
selftest: add new test case test_wic_ls (2017-05-25 17:30:03 +0300)
are available in the git repository at:
git://git.yoctoproject.org/poky-contrib ed/wic/wip
http://git.yoctoproject.org/cgit.cgi/poky-contrib/log/?h=ed/wic/wip
Ed Bartosh (11):
wic: add wic_init_parser_cp
wic: add help and usage content for 'wic cp'
wic: add 'wic cp' command
wic: add Disk._prop helper
wic: add mcopy property
filemap: change signature of sparse_copy function
filemap: check if dest is written for every block
filemap: calculate dst size correctly
wic: add Disk._put_part_image method
wic: fully implement 'wic cp'
selftest: add test_wic_cp test case
meta/lib/oeqa/selftest/wic.py | 46 +++++++++++++++++++++++- scripts/lib/wic/engine.py | 41 ++++++++++++++++++--- scripts/lib/wic/filemap.py | 28 ++++++++++++--- scripts/lib/wic/help.py | 62 ++++++++++++++++++++++++++++++++ scripts/lib/wic/plugins/imager/direct.py | 2 +- scripts/wic | 29 +++++++++++++++ 6 files changed, 197 insertions(+), 11 deletions(-)
--
Regards,
Ed