[OE-core] Directory permissions and ownership -- RFC

Anders Darander anders at chargestorm.se
Wed Jun 22 05:47:37 UTC 2011


On Tue, Jun 21, 2011 at 23:27, Mark Hatle <mark.hatle at windriver.com> wrote:
> Note, there is one remaining issue that I haven't resolved.  A few directories
> are defined in terms of symlinks:
>
>  /var/cache root root 120777 volatile/cache
> +/var/cache root root 40755
>
>  /var/log root root 120777 volatile/log
> +/var/log root root 40755
>
>  /var/run root root 120777 volatile/run
> +/var/run root root 40755
>
> I'm not sure how to resolve this.  If the package(s) that define them as a
> directory are installed before the one that tries to make them a symlink into
> "volatile" it will could cause a failure -- or at least different system behavior.
>
> I'm tempted to extend the fs_perms file to include a way to specify symlinks..
> if one was found then the recipe's install would be modified to mv the directory
> to the target of the link, and add in the symlink.

Yes, please try to find a way to extend the fs_perms file to include
handling of
symlinks. Otherwise we are bound to get problems immediately...

The outline of the symlink handling above seems to be fine, assuming you find
a good place to hook it up to in the tasks.

/Anders




More information about the Openembedded-core mailing list