Skip to content

#11283: wic ls

Ed Bartosh openembedded-core 2 versions – New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest8 patches 0 repliesNew
  2. v18 patches 0 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8filemap: fix skip logicscripts/lib/wic/filemap.py+7 -40 replies
2/8filemap: add parameter 'length' to sparse_copyscripts/lib/wic/filemap.py+12 -30 replies
3/8bootimg-pcbios: make boot image file uniquescripts/lib/wic/plugins/source/bootimg-pcbios.py+1 -10 replies
4/8wic: add wic_init_parser_lsscripts/wic+25 -00 replies
5/8wic: add help and usage content for 'wic ls'scripts/lib/wic/help.py+65 -00 replies
6/8wic: add 'wic ls' commandscripts/lib/wic/engine.py scripts/wic+19 -00 replies
7/8engine: implement listing wic imagesscripts/lib/wic/engine.py+82 -20 replies
8/8selftest: add new test case test_wic_lsmeta/lib/oeqa/selftest/wic.py+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/8] #11283: wic ls

Hi,

This is an implementation of new wic subcommand 'wic ls'.

It lists image partitions:

$ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic
Num     Start        End          Size      Fstype
1        1048576     24438783     23390208  fat16
2       25165824     50315263     25149440  ext4

or directory contents of vfat partitions:

$ wic ls tmp/deploy/images/qemux86-64/core-image-minimal-qemux86-64.wic:1/efi/boot
Volume in drive : is boot
 Volume Serial Number is 66EC-5750
Directory for ::/efi/boot
.            <DIR>     2017-05-15  13:00
..           <DIR>     2017-05-15  13:00
grub     cfg       639 2017-05-15  13:00
bootx64  efi    571392 2017-05-15  13:00

4 files 572 031 bytes
15 818 752 bytes free

The patchset also fixes and extends sparse_copy API to support copying part of the image (one partition) into another image.

It also contains test case for 'wic ls' functionality.

Changes in v2: used mtools from sysroot in the test as oe-selftest failed
trying to use host mtools

The following changes since commit b852248822868b543e6bec8c4dbea6d43eb55f1b:

image_types_wic: schedule prepare_wic_build correctly (2017-05-17 13:35:31 +0000)

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 (8):
filemap: fix skip logic
filemap: add parameter 'length' to sparse_copy
bootimg-pcbios: make boot image file unique
wic: add wic_init_parser_ls
wic: add help and usage content for 'wic ls'
wic: add 'wic ls' command
engine: implement listing wic images
selftest: add new test case test_wic_ls

 meta/lib/oeqa/selftest/wic.py                    | 20 ++++++
 scripts/lib/wic/engine.py                        | 86 +++++++++++++++++++++++-
 scripts/lib/wic/filemap.py                       | 26 +++++--
 scripts/lib/wic/help.py                          | 65 ++++++++++++++++++
 scripts/lib/wic/plugins/source/bootimg-pcbios.py |  2 +-
 scripts/wic                                      | 40 +++++++++++
 6 files changed, 230 insertions(+), 9 deletions(-)
Signature · 1 line
2.12.0