Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 00/11] This is an implementation of new wic subcommand 'wic cp'.
@ 2017-05-25 14:46 Ed Bartosh
  2017-05-25 14:46 ` [PATCH 01/11] wic: add wic_init_parser_cp Ed Bartosh
                   ` (11 more replies)
  0 siblings, 12 replies; 13+ messages in thread
From: Ed Bartosh @ 2017-05-25 14:46 UTC (permalink / raw)
  To: openembedded-core

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


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2017-05-25 15:01 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-05-25 14:46 [PATCH 00/11] This is an implementation of new wic subcommand 'wic cp' Ed Bartosh
2017-05-25 14:46 ` [PATCH 01/11] wic: add wic_init_parser_cp Ed Bartosh
2017-05-25 14:46 ` [PATCH 02/11] wic: add help and usage content for 'wic cp' Ed Bartosh
2017-05-25 14:46 ` [PATCH 03/11] wic: add 'wic cp' command Ed Bartosh
2017-05-25 14:46 ` [PATCH 04/11] wic: add Disk._prop helper Ed Bartosh
2017-05-25 14:46 ` [PATCH 05/11] wic: add mcopy property Ed Bartosh
2017-05-25 14:46 ` [PATCH 06/11] filemap: change signature of sparse_copy function Ed Bartosh
2017-05-25 14:46 ` [PATCH 07/11] filemap: check if dest is written for every block Ed Bartosh
2017-05-25 14:46 ` [PATCH 08/11] filemap: calculate dst size correctly Ed Bartosh
2017-05-25 14:46 ` [PATCH 09/11] wic: add Disk._put_part_image method Ed Bartosh
2017-05-25 14:46 ` [PATCH 10/11] wic: fully implement 'wic cp' Ed Bartosh
2017-05-25 14:46 ` [PATCH 11/11] selftest: add test_wic_cp test case Ed Bartosh
2017-05-25 15:01 ` ✗ patchtest: failure for This is an implementation of new wic subcommand 'wic cp' Patchwork

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox