[wic] non-rootfs partition content owned by build-user

Laszlo Sitzer <dlsitzer@...>


I discovered that when building a wic image with /home on an extra
partition, the contents will be owned by the user running the build.

The problem persists with the master branch of poky.
Last known version to still work was dunfell-23.0.5

Steps to reproduce the issue:

1. git clone it://git.yoctoproject.org/poky (yes, it is on the master branch!)
2. create a build environment
3. add IMAGE_FSTYPES += "wic wic.bmap" to your local.conf
4. adjust scripts/lib/wic/canned-wks/common.wks.inc like below to
create a /home partition

# 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
5. run bitbake core-image-minimal
6. flash wic image to a USB drive
7. check contents of /home on USB drive

Would be amazing if anyone familiar with WIC and pseudo could
recommend how to proceed.



Join openembedded-core@lists.openembedded.org to automatically receive all group messages.