[wic] file ownership in non-rootfs partitions

Laszlo Sitzer <dlsitzer@...>


I am having an issue with wic on the latest dunfell version where the
owner of directories and files contained in partitions other than the
root partition are incorrect. In fact they are owned by the user
running the build process.

The original dunfell version did not show this behaviour. I am also in
the process of checking if the issue might be already resolved when
building the master branch of the poky git repo.

I am building the core-image-minimal while having modified
scripts/lib/wic/canned-wks/common.wks.inc to place /home on a separate

contents of common.wks.inc

# This file is included into 3 canned wks files from this directory
part /boot --source bootimg-pcbios --ondisk sda --label boot --active
--align 1024
part / --source rootfs --use-uuid --fstype=ext4 --label platform
--align 1024 --exclude home
part /home --source rootfs --rootfs-dir ${IMAGE_ROOTFS}/home
--use-uuid --fstype=ext4 --label home --align 1024

The only significant modifications I made to conf/local.conf are
requesting the creation of .wic and .wic.bmap files like this:

IMAGE_FSTYPES += "wic wic.bmap"

I also noticed that there is a commit that is meant to address exactly
this issue but for some reason this does not solve my problem. This is
the commit I am talking about: