On Wed, Jan 8, 2025 at 3:59 AM Florian Wickert via lists.yoctoproject.org
<[email protected]> wrote:

> I initially tried to use cp -a but that gave permission errors and I
> decided to just
> preserve the modes instead because that's what caused the problems in my
> case.
> But I agree that something like cp -a would be even better.
> Maybe even a hardlink would do the job, instead of copying all the files
> into the
> rootfs directory, avoiding the problem altogether.
>

Looking at the other IMAGE_CMDs in oe-core, it jumped out that it was
mainly the ownership / user IDs that were the issue. When something
like tar is used, --numeric-owner seems to avoid the issue.

We could switch to something like tar, or use rsync, but for now, I'm
trying a middle ground of sticking with cp, adding -a and using
--no-preserve=ownership.

That seems to work in my tests. I've joined our two commits, and
pushed them to master-next.

Bruce



>
> Florian
>
> 
>
>

-- 
- Thou shalt not follow the NULL pointer, for chaos and madness await thee
at its end
- "Use the force Harry" - Gandalf, Star Trek II
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#9097): 
https://lists.yoctoproject.org/g/meta-virtualization/message/9097
Mute This Topic: https://lists.yoctoproject.org/mt/110474242/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to