Re: [meta-virtualization] possible regression with: image-oci-unmoci: preserve file modes
Bruce Ashfield <[email protected]>
| Newsgroups | org.yoctoproject.lists.meta-virtualization |
|---|---|
| Message-ID | <CADkTA4NqcFRuOHu5d96T+mhOQTrR5aQv9BCHi2iBpdKq2dgGCQ@mail.gmail.com> |
On Mon, Mar 16, 2026 at 2:42 PM Patrick Vogelaar via lists.yoctoproject.org <[email protected]> wrote: > Hi all, > > [0] caused a regression on my site. I am installing a recipe into the > container that sets ACLs with setfacl in pkg_postinst. To my understanding > those xattr were not preserved before anyways so wouldn't it be better to > change it to: > > Hmm. The -a has been around for over a year in master, so we need to dig into this more. My recollection and quick check is that -a should be copying the xattrs from our source to the umoci layer structure. The bbclass operates on the fully assembled image, so anything you've put in place for ACLs, etc, should be preserved. Rather than dropping -a, I'd extend it with --preserve=xattr if we are missing something in a binutils -> filesystem -> or something else combination. If you had specific examples, I could comment further. Bruce > cp -r --preserve=mode,timestamps,links ${IMAGE_ROOTFS}/* > $image_bundle_name/rootfs > > Could also be that I am doing something wrong in my recipe when setting > the ACLs. > > [0] https://git.yoctoproject.org/meta-virtualization/commit/?h=scarthgap > > Best Regards > Patrick > > -=-=-=-=-=-=-=-=-=-=-=- > Links: You receive all messages sent to this group. > View/Reply Online (#9663): > https://lists.yoctoproject.org/g/meta-virtualization/message/9663 > Mute This Topic: https://lists.yoctoproject.org/mt/118351110/1050810 > Group Owner: [email protected] > Unsubscribe: https://lists.yoctoproject.org/g/meta-virtualization/unsub [ > [email protected]] > -=-=-=-=-=-=-=-=-=-=-=- > > -- - Thou shalt not follow the NULL pointer, for chaos and madness await thee at its end - "Use the force Harry" - Gandalf, Star Trek II