Hi everyone,

I'm building an image for a raspberrypi 4, I have a readonly rootfs and I have 
multiple configs in a custom partition mounted in rw mode at /data
My wks file is

part --source bootimg-partition --ondisk mmcblk0 --fstype=vfat --label boot 
--active --align 4096 --size 100
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_A --align 
4096 --overhead-factor 1
part / --source rootfs --ondisk mmcblk0 --fstype=ext4 --label rootfs_B --align 
4096 --overhead-factor 1
part --source rootfs --rootfs-dir=${IMAGE_ROOTFS}/data --ondisk mmcblk0 
--fstype=ext4 --label data --align 1024 --size 1024

mount points for /boot and /data are skipped because I have a custom fstab file 
because otherwise rauc bundle won't mount them.

The problem is that while the rootfs has the correct permissions:

% wic ls tmp/deploy/images/raspberrypi4/myapp-dev-image-raspberrypi4.wic:3/data
debugfs 1.45.7 (28-Jan-2021)
100   40755 (2)      0      0    4096  9-Mar-2018 04:34 .
2   40755 (2)      0      0    4096 14-May-2021 02:26 ..
101   40740 (2)      0      0    4096  9-Mar-2018 04:34 dropbear
102   40755 (2)   1000   1000    4096  9-Mar-2018 04:34 node-red
105   40740 (2)      0      0    4096  9-Mar-2018 04:34 openvpn

the partition created by wic (which should copy rootfs/data) doesn't:

alex-desktop% wic ls 
tmp/deploy/images/raspberrypi4/myapp-dev-image-raspberrypi4.wic:4
debugfs 1.45.7 (28-Jan-2021)
2   40755 (2)      0      0    4096 14-May-2021 02:26 .
2   40755 (2)      0      0    4096 14-May-2021 02:26 ..
11   40700 (2)      0      0   16384 14-May-2021 02:26 lost+found
12   40740 (2)   1000   1000    4096  9-Mar-2018 04:34 dropbear
13   40755 (2)   1000   1000    4096  9-Mar-2018 04:34 node-red
16   40740 (2)   1000   1000    4096  9-Mar-2018 04:34 openvpn

where is this difference coming from? Isn't possible for wic to maintain the 
same dir ownership?

Thanks
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#53517): https://lists.yoctoproject.org/g/yocto/message/53517
Mute This Topic: https://lists.yoctoproject.org/mt/82820370/21656
Mute #yocto:https://lists.yoctoproject.org/g/yocto/mutehashtag/yocto
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to