[OE-core] how does files/fs-perms.txt affect building base-files rpm?
Khem Raj
raj.khem at gmail.com
Sat Mar 11 09:48:15 UTC 2017
On 3/11/17 12:30 AM, Robert P. J. Day wrote:
>
> potentially a dumb question, but do the settings in
> files/fs-perms.txt affect the building of the base-files rpm just as
> they would affect the building of any other rpm?
it should be executing fixup_perms() in PKGD before splitting the
package, so yes it should run for all recipes.
>
> i can see the structure of the base-files recipe, whose do_install()
> routine manually installs a ton of stuff, with very specific file and
> directory modes, which is fine. and assuming fs-perms.txt is applied
> after that, does that mean that whatever is in that fs-perms.txt file
> will override any settings already in place as built by the base-files
> recipe?
>
> also, as i understand it, given that fs-perms.txt is used to set
> file and directory modes for all created packages, does that mean that
> any discrepancy between a package and what is already in the root
> filesystem will cause a package installation error?
>
> i already ran across the situation where a package was built
> assuming a volatile log directory, but the running image it was being
> installed into had a regular /var/log directory, and that caused the
> package installation to fail. am i correct in assuming that is normal
> behaviour?
>
> thank you kindly.
>
> rday
>
More information about the Openembedded-core
mailing list