Skip to content

wic:allow wic compile as an individual package

Jiang Lu openembedded-core 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest7 patches 19 repliesIn review
  2. v17 patches 1 replySuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7wic:enable wic compile as individual packagemeta/recipes-support/wic/files/setup.py meta/recipes-support/wic/wic_0.2.0.bb+42 -00 replies
2/7wic:move wic src into meta/receipt-support/wicmeta/recipes-support/wic/files/wic.py meta/recipes-support/wic/files/wic/__init__.py meta/recipes-support/wic/files/wic/engine.py +29 more+5825 -58255 replies
3/7image_type_wic:add wic-native into dependmeta/classes/image_types_wic.bbclass+1 -10 replies
4/7wic:allow wic run outof bb enviroment.meta/recipes-support/wic/files/wic.py meta/recipes-support/wic/files/wic/engine.py meta/recipes-support/wic/files/wic/misc.py +2 more+70 -130 replies
5/7wic:direct:remove same entry when updating fstabmeta/recipes-support/wic/files/wic/plugins/imager/direct.py+3 -03 replies
6/7wic:bootimg-efi:try other place for efimeta/recipes-support/wic/files/wic/plugins/source/bootimg-efi.py+12 -08 replies
7/7wic:mkefidisk:add use-uuid for all partitionsscripts/lib/wic/canned-wks/mkefidisk.wks+2 -21 reply

Reviews trailers per patch

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

Read the v2 thread

Cover letter [v2] [PATCH 0/7] wic:allow wic compile as an individual package

[V2]
Rebase patch to latest oe-core commmit.

[V1 log]
This patch set intend to allow wic compile as an individual package, then it can run both on host & target side.

On host, it invoke by image_type_wic.bbclass to as a native tool to generate wic image.

Patch 1-4 make wic compile as a native tool.

On trarget, it parse wks file, and use current rootfs & /boot folder to generated a new wic image on target.

Patch 5-6 fix a few minor issue on target.

The patch is validate with mkefidisk.wks from oe-core layer on intel x86 platform.

Assume /dev/sda2 is root device, then with following command, use could generate a new wic image

$mount /dev/sda2 /tmp/sda
$wic create /root/mkefidisk.wks -k /boot -r /tmp/sda -o /tmp/

The generated image is under /tmp with name mkefidisk-xxx-sda.direct. Then user may dump this file into another booting deivce.

Thanks
Jiang Lu