Hello,

I am updating our system from Honnister to Scarthgap.
I do have a wks file that prepare the system with multiple partitions (a boot, 
two rootfs, one persistent media and one swap).

> 
> part /boot --source bootimg-partition --ondisk mmcblk1 --fstype=vfat
> --label boot_A --active --align 4096 --size 20 --fsoptions "vfat
> rw,relatime,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro"
> 
> part / --source rootfs --ondisk mmcblk1 --fstype=ext4 --label root_A
> --align 4096 --exclude-path=media/
> part --source rootfs --ondisk mmcblk1 --fstype=ext4 --label root_B --align
> 4096
> part /media --rootfs-dir=${IMAGE_ROOTFS}/media --size=128M --ondisk
> mmcblk1 --fstype=ext4 --label data --align 4096
> part swap --ondisk mmcblk1 --size 44 --label swap --fstype=swap
> --size=2048M --overhead-factor 1
> 

I am trying to store configuration files onto the persistent media partition in 
one of my recipes. I am showing here the relevant part:

> 
> do_install:append() {
> mkdir -p ${D}/media/data/calibrations
> install -m 0644 ${S}/../system_config.json
> ${D}/media/data/system_config.json
> install -m 0644 ${S}/../system_config_temperature.json
> ${D}/media/data/system_config_temperature.json
> install -m 0644 ${S}/../calib_0000_00_00_00_00_00.raw
> ${D}/media/data/calibrations/calib_0000_00_00_00_00_00.raw
> }
> FILES:${PN} += "/usr/share/p3_paradigms/*"
> FILES:${PN} += "/media/data/* "
> FILES:${PN} += "/media/data/calibrations/* "
> 

The recipe was working great under honnister and my wic file contained the 
media partition and all the files I copied into it with the recipe. However, 
when I use the same approach with Scarthgap, I have QA error for empty-dirs

> 
> do_package_qa: QA Issue: embedded-services installs files in /media, but
> it is expected to be empty [empty-dirs]
> 

Any idea on how I can solve this? What am I doing wrongly?
Thanks!
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#64435): https://lists.yoctoproject.org/g/yocto/message/64435
Mute This Topic: https://lists.yoctoproject.org/mt/110079171/21656
Group Owner: yocto+ow...@lists.yoctoproject.org
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to