[OE-core] [PATCH 00/11] This is an implementation of new wic subcommand 'wic cp'.
Ed Bartosh
ed.bartosh at linux.intel.com
Thu May 25 14:46:17 UTC 2017
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
More information about the Openembedded-core
mailing list