[Buildroot] [PATCH] system: add optional rsync with preserved permissions

José Pekkarinen jose.pekkarinen at unikie.com
Mon Oct 4 07:08:09 UTC 2021


On Mon, Oct 4, 2021 at 10:00 AM Thomas Petazzoni <
thomas.petazzoni at bootlin.com> wrote:

> Hello,
>
> On Mon,  4 Oct 2021 09:41:43 +0300
> José Pekkarinen <jose.pekkarinen at unikie.com> wrote:
>
> > +config BR2_ROOTFS_OVERLAY_PRESERVED_PERMISSION
> > +     string "Preserve permissions of overlay directories"
> > +     depends on BR2_ROOTFS_OVERLAY
> > +     default "n"
> > +     help
> > +       Preserve file permissions of specified overlay.
>
> I'm afraid we probably won't want an option like this.
>
> The question is why in the existing SYSTEM_RSYNC we don't preserve
> permissions? I can imagine because sometimes they can be wrong in the
> original overlay, for example with version control systems that put all
> files read-only.
>
> Yann, Arnout: do you remember why SYSTEM_RSYNC has --chmod=u=rwX,go=rX ?
>
> José: have you considered using a permission table to fixup the
> permissions ?
>

Never heard of it, but after a quick check it looks like

it is a better answer to my problem, since I found that, for
example, if I want to provide, an authorized_keys file owned
by root, with 600 permissions, rsync copies the file with 644,
which is closer, but not perfect.

Thanks!


José.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.buildroot.org/pipermail/buildroot/attachments/20211004/6e06421e/attachment.html>


More information about the buildroot mailing list